Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion how to-Start new activity with also current activity running

Received: by 10.66.81.202 with SMTP id c10mr4492587pay.40.1346811313953;
        Tue, 04 Sep 2012 19:15:13 -0700 (PDT)
X-BeenThere: android-developers@googlegroups.com
Received: by 10.68.141.75 with SMTP id rm11ls253349pbb.6.gmail; Tue, 04 Sep
 2012 19:12:36 -0700 (PDT)
Received: by 10.68.189.228 with SMTP id gl4mr3698564pbc.4.1346811156532;
        Tue, 04 Sep 2012 19:12:36 -0700 (PDT)
Date: Tue, 4 Sep 2012 19:12:35 -0700 (PDT)
From: HK <android.out.th...@gmail.com>
To: android-developers@googlegroups.com
Message-Id: <3e8211e2-c8e7-4bb1-a124-f631174f3fb6@googlegroups.com>
In-Reply-To: <CALLdnhNGJJ69kTf2SYCr1tY-xfYPEE6KNo2Rhp+ux9KqniG6Xw@mail.gmail.com>
References: <9758551a-7e5f-4991-89f1-2d7b24f64575@googlegroups.com>
 <CANCScgifpvAhcDksPwkxiZv83+ZmwFLy8ca9Hce1nSG75M2vxQ@mail.gmail.com>
 <fd98eecc-1b2f-4ee0-b60e-4978975291b8@googlegroups.com> <CANCScgjDyqP0Vq-_gg0uEgpKQ7o-krbfuP0f-W8P3hecZZhpog@mail.gmail.com>
 <CAOq06s-Fh3PsaY-Q4=Es=7WkaRPTtuF+_QaZ65smPEAgig=60g@mail.gmail.com> <1db4a9de-ea20-4f9a-a1f8-c3fa2ca225aa@googlegroups.com>
 <CALLdnhNGJJ69kTf2SYCr1tY-xfYPEE6KNo2Rhp+ux9KqniG6Xw@mail.gmail.com>
Subject: Re: [android-developers] how to-Start new activity with also
 current activity running
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1783_11110769.1346811155996"

------=_Part_1783_11110769.1346811155996
Content-Type: multipart/alternative; 
	boundary="----=_Part_1784_8283216.1346811155996"

------=_Part_1784_8283216.1346811155996
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Ok.

So,  in Activity A's onPause, is it possible to find which activity is 
launched ? i.e., when Activity B is launched, is it possible to find in 
Activity A's onPause that Activity B is launched ?

On Wednesday, September 5, 2012 10:40:34 AM UTC+9, Mark Murphy (a Commons 
Guy) wrote:
>
> On Tue, Sep 4, 2012 at 9:29 PM, HK <android....@gmail.com <javascript:>> 
> wrote: 
> > The behavior I am looking for which I think not supported by Android: 
> > Activity A is running which I do not have much control, it doesn't 
> belong to 
> > me. 
> > I start Activity B whose only purpose is to display some dialogs. When I 
> > start Activity B, Activity A's onPause is called and this onPause draws 
> the 
> > screen blank. 
> > So I was expecting some solution where Activity A's onPause is not 
> called. I 
> > know this is not normally possible with Android's concept, so I was 
> hoping 
> > if some developers in this forum has some tweaks. 
>
> Sorry, but onPause() is always called if some other activity takes 
> over the foreground. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in NYC: http://marakana.com/training/android/ 
>

------=_Part_1784_8283216.1346811155996
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Ok.<br><br>So,&nbsp; in Activity A's onPause, is it possible to find which activity is launched ? i.e., when Activity B is launched, is it possible to find in Activity A's onPause that Activity B is launched ?<br><br>On Wednesday, September 5, 2012 10:40:34 AM UTC+9, Mark Murphy (a Commons Guy) wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On Tue, Sep 4, 2012 at 9:29 PM, HK &lt;<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A1stm9C6IRYJ">android....@gmail.com</a>&gt; wrote:
<br>&gt; The behavior I am looking for which I think not supported by Android:
<br>&gt; Activity A is running which I do not have much control, it doesn't belong to
<br>&gt; me.
<br>&gt; I start Activity B whose only purpose is to display some dialogs. When I
<br>&gt; start Activity B, Activity A's onPause is called and this onPause draws the
<br>&gt; screen blank.
<br>&gt; So I was expecting some solution where Activity A's onPause is not called. I
<br>&gt; know this is not normally possible with Android's concept, so I was hoping
<br>&gt; if some developers in this forum has some tweaks.
<br>
<br>Sorry, but onPause() is always called if some other activity takes
<br>over the foreground.
<br>
<br>-- 
<br>Mark Murphy (a Commons Guy)
<br><a href="http://commonsware.com" target="_blank">http://commonsware.com</a> | <a href="http://github.com/commonsguy" target="_blank">http://github.com/commonsguy</a>
<br><a href="http://commonsware.com/blog" target="_blank">http://commonsware.com/blog</a> | <a href="http://twitter.com/commonsguy" target="_blank">http://twitter.com/commonsguy</a>
<br>
<br>Android Training in NYC: <a href="http://marakana.com/training/android/" target="_blank">http://marakana.com/training/<wbr>android/</a>
<br></blockquote>
------=_Part_1784_8283216.1346811155996--

------=_Part_1783_11110769.1346811155996--