Skip to content

Instantly share code, notes, and snippets.

@rafaeltoledo
Created January 10, 2017 01:32
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 rafaeltoledo/eff4b4d00c351a797d656fa7e2c3f29a to your computer and use it in GitHub Desktop.
Save rafaeltoledo/eff4b4d00c351a797d656fa7e2c3f29a to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
Log.d("MA::Action", intent.getAction());
for (String category : intent.getCategories()) {
Log.d("MA::Category", category);
}
Log.d("MA::Component", intent.getComponent().getClassName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment