Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Created January 22, 2014 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/8567409 to your computer and use it in GitHub Desktop.
Save chris-piekarski/8567409 to your computer and use it in GitHub Desktop.
Log package name of incoming Intent
import android.content.pm.PackageManager;
import android.os.Binder;
import android.content.Intent;
class {
@Override
public void onReceive(Context context, Intent intent) {
Log.v(TAG, context.getPackageManager().getNameForUid(Binder.getCallingUid()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment