android - Passing values to an activity which I don't want to display -


i've got activity (say activity 1) sends bunch of extras activity (activity 2). i'd extras sent activity 2, don't want activity display @ all.

i'd send intent activity 2, , go straight activity 3.

the reason is:

activity 1: user chooses options ui

--> activity 2 sent of chosen parameters

--> service started uses parameters activity 2

activity 3 displayed, next ui user.

one approach start activity 2, , have activity 2 start activity 3. doesn't work me though, because without content view, activity 2 still tries display momentarily. also, if button used activity 3, activity 2 shows up. i'd never show activity 2. should activity 2 service?

you can prevent activity being displayed after pressing using flag : @ http://developer.android.com/reference/android/content/intent.html#flag%5factivity%5fno%5fhistory

you can have activity 2 not setcontentview() , nothing displayed

why can't activity 1 call activity 3 directly ? activity 2 needs add data ? perhaps move code subclass of application object , manage state through ?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -