I attached a test app as a zip file. I created a simple test app to show behavior. I used the Admob test ad id so no worries about clicks. First Click the Yellow Star to start animation. Then when I click the ad, and then click the home button while the ad is showing on the screen, the Activity restarts from the beginning. How do I keep the Activity from restarting?
To Show Behavior:
The App will start from the very beginning again.
To show normal home button behavior:
To show(what I think is normal) normal behavior:
Can I use a Service to keep an Activity in the Foreground? How do I keep the Activity from restarting when I click the home button while an Admob ad is showing?
To Show Behavior:
- Click the Yellow Star to Start the Animation.
- Click the black banner ad at the bottom of the screen.
- Click the home button.
- Find the App labeled Yellow Star and reOpen it.
The App will start from the very beginning again.
To show normal home button behavior:
- Click the Yellow Star to Start the Animation.
- Click the home button.
- Click the App labeled Yellow Star and reOpen it.
To show(what I think is normal) normal behavior:
- Click the Yellow Star to Start the Animation.
- Click the black banner ad at the bottom of the screen.
- Click the back button.
Can I use a Service to keep an Activity in the Foreground? How do I keep the Activity from restarting when I click the home button while an Admob ad is showing?