Tuesday, September 4, 2012

Re: [android-developers] how to-Start new activity with also current activity running

I have an app that has an effect similar to what you are trying to accomplish (I think)...

If you take a look at AppSwipe! in the Google Play Store you will see that I do not get a black background... AppSwipe! runs as an activity that has a transparent background.

https://play.google.com/store/apps/details?id=com.magouyaware.appswipe

Is this what you are trying to implement?  If so, then it has absolutely nothing to do with whether or not onPause() gets called on the activity in the background.  If this is not what you are trying to do, then please clarify...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Sep 4, 2012 at 10:14 AM, TreKing <trekingapp@gmail.com> wrote:
On Tue, Sep 4, 2012 at 1:28 AM, HK <android.out.there@gmail.com> wrote:
My activity B is started from a service and is only meant for Alert dialogs and nothing else. So I don't want activity A to go into onPause and show background black.

If you start some Activity B after another Activity A, A's onPause will be called. That is how Android works. If you don't want this behavior, then don't start another Activity.


-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment