Closing Browser window after twitter login android with twitter4J -
Hi, I'm developing an Android application in which I'm using Twitter login. I am using Liberty for twitter4j-3.0.5 twitter certification. So my views come back to my application after successful, but in the background this browser window is not closing. When I click my browser back with the twitter window
My code looks like this:
intent to intent = new intent (int. Action_ucli, uri Parse (requestToken.getAuthenticationURL ())); StartActivity; & Lt; Activity Android: name = "com.example.twitterapp.TwitterWebActivity" android: label = "@ string / title_activity_twitter_web" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Category android: name = "android.intent.category.BROWSABLE" /> & Lt; Data Android: host = "com.example.twitterapp" Android: Schema = "Oath" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; I want to close that web browser. Can anyone help me? Need help. From you
Add it:
intent.addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP);
Comments
Post a Comment