dannyroa
dannyroa

Reputation: 5571

Detect intent-filter received by app

I'm building an app that is registered for the intent filters IMAGE_CAPTURE (Camera) & PICK (Gallery).

For the Activity, how do I detect which intent filter was received?

Upvotes: 0

Views: 131

Answers (1)

Hoan Nguyen
Hoan Nguyen

Reputation: 18151

In onReceive

String action = intent.getAction();  

and use this to compare with the action you register for.

Upvotes: 1

Related Questions