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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en