Showing posts with label Activity. Show all posts
Showing posts with label Activity. Show all posts

Friday, 5 August 2016

Failed to launch gallery activity!



I flashed to Non prime, rooted, unlocked bootloader and debloted MediaTek apps.

Now after taking a picture and touching the gallery picture I get the "Failed to launch gallery activity!" message.

How can I get the gallery back or substitute for another?



Sent from my BLU R1 HD using Tapatalk



Monday, 4 July 2016

How to detect when my Activity has been obscured?



Hi,
I would like to be able to detect if my Activity has been obscured by, say, a system alert or some other overlay (for example the power menu when I long press on the power button, or the volume control Toast), or some malware that detects the launch of my Activity. I noticed that the foreground app in this case would still be my app, so I can't simply base it on what the foreground app is. I also notice that onPause() isn't called when my Activity is obscured, so I can't put any logic in onPause() either. Even if I can though, I would then have to differentiate between a system alert/overlay and the user pressing the back/home button.

Are there any other ways for me to accomplish this?