Reputation: 820
i am trying to get the intent,which activity had started the intent, i am trying facebook integration with my app,in which i want to know who have called my activity is the call from facebook or withen my app, suppose i have 3 activity a,b & c, a call b c call b facebook calls b here in activity i want to detect who have started activity b how to get this, i googled it but no use please share yours views on this or any refrence thank you
Upvotes: 1
Views: 1048
Reputation: 15662
For deep linking, why not just use an Activity class that's specific to Facebook?
Since you're configuring the class name in your app settings, just use a class that's something like: FacebookDeepLinkActivity, and from there, you can start another activity in your app if you want. This way, you know exactly which links came from Facebook.
Upvotes: 0
Reputation: 1372
you should maintain a variable for an activity and send it with intent as extra along with intent, and check when you start activity and check that common extra variable.
Like Intent.putExtra("From", "a");
and get data and check it from where it comes
Upvotes: 2