Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I enabled both client side flow and desktop oauth redirect url, and manage to get the user login and get redirected to https://stackexchange.com/oauth/login_success#access_token=xxxxx

But how can i manage this webview and parse from android... my activity from the android manifest manages the data url like but nothing is happening...

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You need to have a data filter for the activity that you call the authentication url in the manifest like below

<data android:host="stackexchange.com" android:pathPrefix="/oauth/login_success" android:scheme="https" />

The activity also needs to override the onresume function for you to parse the url and get the access token from the uri.

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .