android - How can I return to a child activity, after finishing OAUTH for twitter? -


for application there 1 tab host 5 different activities 5 tabs. 1 of activity group, contain 4 child activities, , users can go , fro these child activities.

now 1 of child activities used post tweet. oauth thing fine. find callback cannot point activity parent activity group or tab activity. not sure points outcome when user authorize twitter app, , return android app, activity started on , called oncreate instead of onresume or onnewintent. causes infinity loop , asking user authenicate again , again. have tried add android:launch:singleinstance not help.

if not start activity child new activity, fine.i can onnewintent , post tweets. quite sure cause activity group or tab activity.

i not familiar of how intent filter works under tab / activity group, can explain case me?

manifest.xml

<activity android:name="twitteract" android:launchmode="singleinstance">         <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="twitteract" />                </intent-filter> </activity> 

twitteract

private final string callbackurl = "myapp://twitteract";  

thanks

this works me: render oauth web page in webview control rather launching out browser app.

the oauth web page, when calls callback, replacing in webview, webviewclient can catch expected url, process results, , finish() webview (removing activity stack).

in other words, manifest entries can go away. callback can url, long recognize in webviewclient create.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -