[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-26 Thread Jason Van Anden
Just a shout out ... still no luck. Still frustrated. I have a hunch as to what is happening - but its seems a little nutty. My hunch is that when FLAG_ACTIVITY_NEW_TASK gets raised, my PendingIntent gets replaced by the standard MAIN/LAUNCHER intent, which is used to activate the application.

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-26 Thread robotissues
Ultimately sorted out in developers forum here: http://groups.google.com/group/android-developers/browse_thread/thread/82aa31e33faf783e?hl=en# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group.

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-25 Thread Mark Murphy
Wayne Wenthin wrote: Not to hijack the thread but ... Mark do you know any books that cover this stuff because it makes my head hurt also and seems to be one of my main stumbling blocks. I'm afraid I don't. On the other hand, I've only bought one, and some of the others aren't searchable on

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-25 Thread Jason Van Anden
Thanks again Mark. Great suggestions. I guess I thought (or was hoping) I was going down the wrong path. I will give some of these a try and get back. re: Hijack the thread!?! ... Its reassuring to find out others are perplexed by this. I posted this question a few days ago, albeit a little

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-25 Thread Jason Van Anden
yup ... that's where I posted! (actually posted under beginners first, then developers, then here again). j On Thu, Jun 25, 2009 at 10:10 AM, Mark Murphymmur...@commonsware.com wrote: re: Hijack the thread!?! ... Its reassuring to find out others are perplexed by this.  I posted this

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Mark Murphy
Jason Van Anden wrote: thing is, I have no idea what function to read the intent details from. You can get the Intent that started your activity via getIntent(). AFAIK, if you are brought forward off the stack via a Notification, getIntent() will return the Intent from the Notification. It

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Jason Van Anden
Hi Mark, Thanks Mark ... still stuck tho. The it is the pendingIntent that is re-activating/restarting the Activity. Basically, my main Activity starts a Service that continues to run with or without it. The Service occasionally updates the status bar. When the user selects the status bar

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Mark Murphy
Jason Van Anden wrote: I assumed when the Activity was activated it would call onCreate, or startActivity ... or something else where I could retrieve the extras from. onResume gets called - but when it gets called, the intent has changed via LogCat That certainly would not have been my

[android-beginners] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Wayne Wenthin
Not to hijack the thread but ... Mark do you know any books that cover this stuff because it makes my head hurt also and seems to be one of my main stumbling blocks. On Wed, Jun 24, 2009 at 7:00 PM, Mark Murphy mmur...@commonsware.comwrote: Jason Van Anden wrote: I assumed when the