Confused over activities and creating new tasks

by Connick » Wed, 01 Sep 2010 06:03:02 GMT

Sponsored Links
 Hi folks,

I'm launching a wizard as a series of views. (dialog theme) I need the user
to be able to step back and forth through the series of views. When the
final step is completed I'd like to return the to the original view that
launched this new task. (i.e. close the series of dialogs) The only way I've
gotten this to work is to call finish() on each dialog before starting the
activity of the next step. (that rules out being able to navigate back)

I've tried launching the initial intent with Intent.FLAG_ACTIVITY_NEW_TASK
as well as setting a taskAffinity for the views involved to no avail.

Any insight appreciated,


Confused over activities and creating new tasks

by Mark Murphy » Wed, 01 Sep 2010 06:07:39 GMT

 I'd implement a wizard using ViewFlipper in a single activity,
personally. Creating a reusable wizard component is yet another of the
18,000 items on my to-do list...


Sponsored Links

Other Threads

1. onSaveInstanceState problem while making oAuth request

In my app at some point I am making oAuth request to authorize user
with Twitter. App opens WebView in which user enter his credentials.
Upon user pressing "Allow" button, twitter sends Intent (which
contains token and secret) back to my app so user can start when he/
she left of. The problem is my Activity has RowID (very important to
know which record is currently active) that get lost RowID is
parameter that my activity receives through Intent in onCreate event.

I've checked, onSaveIstanceState is not executed, so when my Activity
gets control back, my RowID doesn't exist.
When my Activity receives Intent from Twitter, it is handled in
onResme event. I assume, here I should somehow obtain my RowID
What would be good way to remember my RowID and to be able to pull it

In my manifest I had to enter following for my Activity in order to be
able to get control back:
android:name="android.intent.action.VIEW" />
android:name="android.intent.category.DEFAULT" />
android:name="android.intent.category.BROWSABLE" />
                                <data android:scheme="myapp" 
android:host="oauth" />

Any Suggestions. Thanks.


2. MediaPlayer server died!

I was just tracing the audio path in Android cupcake. With some
curiosity I began by making changes in AudioFlinger.cpp and
AudioMixer.cpp. I made some changes to the mixing process and also the
audio buffer being sent to the hadware. I created only one instance of
MediaPlayer in my app and began playing the song.I started getting the
following error....

MediaPlayer server died!
W/MediaPlayer(28577): MediaPlayer server died!
E/MediaPlayer(28577): Error (100,0
I/ServiceManager(   27): service 'media.audio_flinger' died
I/ServiceManager(   27): service 'media.player' died
E/AudioService(   55): Media server died.
E/AudioService(   55): Media server started.

I wonder wats the cause of this issue. Does any delay in writing the
buffer to the hardware cause this problem or is it related to
something else?



3. How I can make transparent Keyguard

4. Application not showing in android market

5. Recommendable OS environment for android application programming

6. How to style a button to look like a spinner

7. Android International contests