You really haven't posted enough to help, but if you are starting an
activity you can pretty much count on onSaveInstanceState() being called
before the next one even starts.  Of course you can do things to prevent
this, such as calling finish() so your state won't need to be saved, using
certain Intent flags that also have the result of finishing your activity,
etc.

You may also be having a new instance of your activity created instead of
returning to the original one.  But again, there is not enough information
here to determine that.

Do look at logcat output while you are running, as that will have messages
about activities being started and other interesting things.  You can also
use "adb shell dumpsys activity" at any time to see all activity stacks.

On Sat, Dec 11, 2010 at 10:14 PM, bobetko <bobe...@gmail.com> wrote:

> 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
> back?
>
> In my manifest I had to enter following for my Activity in order to be
> able to get control back:
>                        <intent-filter>
>                                <action
> android:name="android.intent.action.VIEW" />
>                                <category
> android:name="android.intent.category.DEFAULT" />
>                                <category
> android:name="android.intent.category.BROWSABLE" />
>                                <data android:scheme="myapp"
> android:host="oauth" />
>                        </intent-filter>
>
> Any Suggestions. Thanks.
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to