hey i was hoping for some guidance on an intent issue.

my app has three main components -- a regular main/launch one which 
handles most of the functionality, a broadcast receiver which listens 
for phone state, and a view activity which shows stuff when the phone 
rings.

the phone rings, the broadcast receiver picks up, makes a network 
call, launches the view activity to do its thing. then the caller 
hangs up. the local user then hits the home button.

ok so far. but here's the problem - when the user hits the 
application icon to come back in, the system displays the view-only 
activity, not the "main" one.

huh? i thought the system would pick the main/launch one, as only 
those are registered to appear on the home page. seems like it's 
confused about which activity is which.

currently i declare the activity as action VIEW with no category. i 
invoke it by class name, so there's no doubt which one i'll get. is 
there a way to declare the view activity so that it will most 
definitely not be the one the system picks to handle a click on the 
home page? i suppose i could trap keydown, check for Home, then 
finish(), but seems like there should be a more elegant way.

thanks much
-- 
jason.vp.engineering.particle

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

Reply via email to