lundi 18 mai 2015

Return URI after certain page is loaded with Intent.ACTION_VIEW

I am trying to implement VK authorization with loading specific URI where user will enter login and password using

Uri uri = Uri.parse(VKauthorizeURL);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

How do I retreive final URI after user has successfully signed in? I know that redirected address will look something like

http://ift.tt/1II3JdG

I have no knowledge of how to read address line in created Intent or how to read it upon the event of specific address change.

I am starting this event when clicking on a button (like sign via Facebook) in my activity, so idk if WebView will be suitable here.

Thank you!

Aucun commentaire:

Enregistrer un commentaire