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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -