Reputation: 4185
Suppose current Activity called "A1" is running. I want to start Activity "A2", but do not pause(call onPause()) and then resume "A1" when returning with back button. Is there a way to achieve this?
Upvotes: 2
Views: 2094
Reputation: 40218
What you're trying to achieve is not feasible. However, Android 3.0 has introduced the concept of Fragments
. Fragment
roughly speaking is a part of Activity
layout with its own logic. By combining different Fragments
you can create a multipart layout which will look like you have more than one Activity
running at the same. Fragments
are also supported in Android versions lower than 3.0 if using the Support Library. You can take advantage of Fragments
concept in your application as it looks like this is the case. Hope this helps.
Upvotes: 5