Created
January 22, 2014 21:12
-
-
Save chris-piekarski/8567409 to your computer and use it in GitHub Desktop.
Log package name of incoming Intent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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