Is there a way to know who is the application caller?
These are several use cases cases:
I have an application and a widget of it. Application is not running. Once I add/remove the widget, the system calls the application to run (Application.onCreate() is called and etc..). So I need to know that this is not a user who press an icon to run application, but this is a system needs to update widget.
When I get low of memory, the system kills the application and then restors it again when there is enough memory. The question is the same as above.
More similar cases...
The only case that I can manage is a BootUpReceiver which is extended from BroadcastReceiver. Only in this case I am sure that the application is run by the "launch at start" feature.
I need to know for sure - who (what service, receiver, intent, etc) any why is calling my application.
Is there a way to know the caller source, or caller ID or any information about a service or any other who call my application to run?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)