Any of those help I implemented one of the approaches suggested by @CommonsWare (and independently by Mark Allison in answer to my question on his blog). for your suggestions! In review, THE PROBLEM was I couldn't keep a second screen presentation running in the background across Activity invocations on a local device. This was because the Presentation class is implemented as a subclass of Dialog, and is therefore tied to an Activity instance. So when a new Activity started up, the second screen went back to mirroring (instead of displaying other content I was specifically generating for it).
Android-Fully stop one activity when another activity is called
it fixes the issue I would like to know if there is a way to fully stop one activity when another activity is called. For instance, I have two activities within an application but it seems like that when one activity is called another activity seems to be running (such as Background services). I thought that when one activity within an application is called another activity is stopped under the circumstance that there are two activities. Following is manifest file for the application (I deleted lines for Background services here..) in advance! :) , You can call finish() on the first Activity.
Intent intent = new Intent(FirstActivity.class, SecondActivity.class);
Is there a way to tell android force stop activity which going to background without removing it from activity stack?
With these it helps Just enable the developer option "don't keep activities" (or whatever its called). This won't remove the activity from the stack, but will actually call onStop() and onDestroy() whenever the user leaves the activity and opens another. When the user presses BACK, Android will create a new instance of the activity, and call onCreate() and onRestoreInstanceState()` as expected.
How to stop android webview activity from reloading when another activity is closed
around this issue Since you are loading your urls in onResume() too, it will be getting called when your other activity closes and the webview activity comes in focus. Here you have 2 choices to go for. Only load your urls in onCreate() method as it will not get called again until your activity is restarted.