Task manager on Motorola Droid3 shows a popup to ask the user whether to close a running application or not. I need to programmatically answer "no" to that Activity. Is that feasible?
A more generic question: is 开发者_Go百科it possible to "register" my application to catch the event of the opening of another's application activity and automatically press a button on that activity?
Thank-you
No, that is not possible. If that was possible, then each application could control device as if it was user. For example in this case such application could enable Mobile Data in Settings, but only system applications are allowed to do this.
Have you tried to figure out why the task manager is trying to close your application.
Make sure that you are not running any blocking tasks on the UI thread (like downloading or copying a file).
精彩评论