there are many applications which invokes my application in system> I want to know which app invoked my app or activity or service presently ?
Can anybody help me to solve this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can provide different activities to start your app, each being called by different apps. Or you can monitor user actions after app launch (navigation to screens etc) and determine which application may have launched your app. These two are relatively logical but apart from this you can monitor and look for currently running apps (look here for one possible way to do that) and then maybe determine which application launched your app.
Note that these are just strategies, not a definite answer.