For FaceBook made an authorization through the installed client. Just like here
Intent intent = new Intent(); intent.setClassName("com.facebook.katana", "com.facebook.katana.ProxyAuth"); intent.putExtra("client_id", applicationId); ... activity.startActivityForResult(intent, activityCode);
authorization result must be caught by the method
void onActivityResult(int requestCode, int resultCode, Intent data)
Is it possible to log in to vKontakte similarly?
Facebook
will only work if theFacebook
application is installed? And the SDK also represents the possibility of authorization in the case when theFacebook
application is not installed on the phone. The same will happen with Vkontakte, if you find a way to do something similar for him. - Vladyslav MatviienkoVK SDK
is open source, you can see how they do it. github.com/VKCOM/vk-android-sdk For example, I here in a couple of minutes found the place where theActivity
starts for authorization: github.com/VKCOM/vk-android-sdk/blob/master/vksdk_library/src / ... line 111 - Vladyslav Matviienko