AndroidCoder
AndroidCoder

Reputation: 312

Android intent filter - check if another app started activity

I'm catching an intent filter from another app, which sends no data. In my manifest, I start my login screen. Is there a way to check if my app was started by a user or from the other app?

I have no control over the other app, therefor I can't make it send some data.

Upvotes: 4

Views: 1748

Answers (1)

SvenT23
SvenT23

Reputation: 676

If you're already catching the intent succesfully, it's possible to check the intent that started your app by using Intent intent = getIntent(); in your oncreate to see if you can identify that it came from the other app you mention.

Upvotes: 1

Related Questions