title: get application name from package name
body: <p>I want to get the application name from application package name.  Somebody please show me how I can get this.</p>
  
  <pre><code>public class AppInstalledListener extends BroadcastReceiver{
  
      @Override
      public void onReceive(Context context, Intent intent) {
          // TODO Auto-generated method stub
          String action = intent.getAction();
          if(action.equals("android.intent.action.PACKAGE_ADDED")){
              Logger.debug("DATA:"+intent.getData().toString());
          }
          if(action.equals("android.intent.action.PACKAGE_REMOVED")){
              Logger.debug("DATA:"+intent.getData().toString());
          }
          if(action.equals("android.intent.action.PACKAGE_REPLACED")){
              Logger.debug("DATA:"+intent.getData().toString());
          }
      }
  }
  </code></pre>