There is nothing wrong with your application. The SDK is broken and
this is just a very annoying bug. What you want is the default
behaviour which doesn't work because its BROKEN. The devs are too lazy
to fix it.
On Jan 23, 4:09 am, Josh Hoffman wrote:
> I'm currently working with a two-activity
Sent from my BlackBerry® smartphone from !DEA
-Original Message-
From: Josh Hoffman
Date: Sat, 23 Jan 2010 14:22:48
To: Android Developers
Subject: [android-developers] Re: Launching the correct activity on resume
Thanks for your help Vo Trung Liem, I think I may not have been clear
It seems you are not going to get a call to onNewIntent() because in
ayanir's example Activity A (the activity launched by the home screen)
is not on top of the task stack.
Apparently the market application is sending an intent for
action.MAIN, category.LAUNCHER. Maybe you would need some kind of
Did you read the instructions that Dianne posted?
> Set android:launchMode="singleTop" on your first activity. You will then
> get an onNewIntent() when you are re-launched from home. There you can
> startActivity() for your second activity; if you want back from the second
> activity to skip th
thanks jotobjects,
I wanted to add few comments:
1.when I used the "singleTask" in launchMode, when I opened the app
icon from the Home screen, it stated Activity A and not the last
Activity. so this is not the solution.
2.from:
http://developer.android.com/intl/de/guide/topics/manifest/activit
On Jan 27, 2:13 am, ayanir wrote:
> Hello,
>
> I have a similar problem when I open the application from the Market.
>
> if I go from Activity A (LAUNCHER) to B, press Home key and re open
> the application from the Home screen icon it come back to Activity B
> (the last Activity) as it should.
Hey guys,
Funny I find this thread this morning.. I just posted to Mark Murphy's forum
a similar question regarding multi-activity apps and how the life cycle is
handled. My question was a little bit different, but similar to this. My
main question was how do we handle the various life cycle metho
Hello,
I have a similar problem when I open the application from the Market.
if I go from Activity A (LAUNCHER) to B, press Home key and re open
the application from the Home screen icon it come back to Activity B
(the last Activity) as it should.
but, if I open the application from the Market ap
Hello,
I have a similar problem when I open the application from the Market.
if I go from Activity A (LAUNCHER) to B, press Home key and re open
the application from the Home screen icon it come back to Activity B
(the last Activity) as it should.
but, if I open the application from the Market ap
Yes it looks like we have got confused here about what happens when
returning to the Home screen (perhaps your issue was the Eclipse
"feature" mentioned in the thread?).
In the interests of clearing up quite a bit of misinformation in this
thread, this is the what actually happens:
Re-launching t
On Jan 25, 12:54 am, jotobjects wrote:
> If Activity1 and Activity2 are part of the same task and Activity2 is
> foreground when pressing the Home key, then I thought that choosing
> that app on the Home screen would return you to Activity2.
Something to remember is that "choosing that app on th
Hm. The difference between task state and activity stack is not easy
to grasp (for me). You always start a new activity-stack when you
return to Home as I understand it. At any point you can switch to
another task by long-pressing Home to get the recent task list.
If Activity1 and Activity2 ar
Set android:launchMode="singleTop" on your first activity. You will then
get an onNewIntent() when you are re-launched from home. There you can
startActivity() for your second activity; if you want back from the second
activity to skip the first, you can call finish() in the first after
starting
Hi.
I noticed something similar while developing for android...that is:
when I start the app from eclipse (either "debug as", or "run as") launching
Activity 1, then go to Activity 2, then press Home, and then restart the
app, I see that Activity 1 is shown (while Activity 2 should be on top of
th
14 matches
Mail list logo