[android-developers] Equivalent to dialog display iniitiated from a service

2010-11-11 Thread Weston Weems
I know this question has been asked and been shunned for quite some
time. Like everyone else, I believe my idea to be the next big thing
and likewise I cant explain exactly what I am trying to do, except
that I think its acceptable use in my case.

The idea is that the service will be chugging along... should
something occur with credentials or a number of other things, the idea
is that its important and needs users attention more or less right
away. After reviewing all the other existing chat discussions on the
topic, I can say that I understand why people generally dislike the
idea, and why just poppin a notification is the suggestion.

Obviously displaying a straight dialog doesn't work, and I guess its
understandable so lets move on to popping a activity. I've had it
spawning my activity with extras on the intent and that works quite
well, but I'd like to be able to hit a button there and have it dump
completely back to what user was doing prior to my calling of the user
info dialog.

What I'm actually noticing is that because the activities can be in
use and different states, and the whole FLAG_ACTIVITY_NEW_TASK still
appears to try and reuse activities from my app if they are suitable.

eg, if i open front end and navigate around, then hit home, then some
event occurs, it will navigate to the correct activity in my app...
but when I attempt to dismiss with finish(), it returns the my apps
main activity. If I force kill it just prior to event occuring, it
works 100% like expected.

Do I need to specify other flags to spawn an activity with literally
no history (like a static method call) or should I be ok there?

Is there anyway I can just build a dialog, ask for a couple bits of
user info, continue upon its business if user hits ok (or cancel for
that matter)?

I really believe that android sdk is probably right that there are
very very very few cases in which this should be done in the first
place... but notifications in this case wont do.

Please help!

Weston

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Equivalent to dialog display iniitiated from a service

2010-11-11 Thread Frank Weiss
I suppose you believe that notifications in this case wont do because the
user interaction your service demands cannot be deferred by the user?

The problem with that, IMO, is if a user has more than one service like that
running, how does the user control which one preempts another when they
simultaneously demand user interaction. Plus there's the current active
activity, which may actually be more important to the user than any of such
demandful services.

I like Android's multitasking the way it is. It lets me see what's queued
for my attention in the notification bar and gives me the power to switch to
whichever task I think is most importnat at that particular time. Thank you,
Android!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en