It sounds like the best solution for you is to bundle the row id in
your intent's "extras" and then get it back during the callback.
Check out 
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20int)
and 
http://developer.android.com/reference/android/content/Intent.html#getIntExtra(java.lang.String,%20int)

On Dec 12, 12:14 am, 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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to