package net.yeputons.ofeed;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

@@ -70,17 +70,196 @@
 oid.
-os.Bundle
+content.Intent;%0Aimport android.os.Bundle;%0Aimport android.widget.Toast;%0Aimport com.vk.sdk.VKAccessToken;%0Aimport com.vk.sdk.VKCallback;%0Aimport com.vk.sdk.VKSdk;%0Aimport com.vk.sdk.api.VKError
 ;%0A%0Ap
@@ -299,16 +299,53 @@
 Activity
+ implements VKCallback%3CVKAccessToken%3E
  %7B%0A    @
@@ -489,16 +489,610 @@
 t.main);
+%0A%0A        VKSdk.login(this, %22friends%22, %22wall%22);%0A    %7D%0A%0A    @Override%0A    protected void onActivityResult(int requestCode, int resultCode, Intent data) %7B%0A        if (!VKSdk.onActivityResult(requestCode, resultCode, data, this)) %7B%0A            super.onActivityResult(requestCode, resultCode, data);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onResult(VKAccessToken res) %7B%0A        Toast.makeText(this, %22OnResult: %22 + res.userId, Toast.LENGTH_LONG).show();%0A    %7D%0A%0A    @Override%0A    public void onError(VKError error) %7B%0A        Toast.makeText(this, %22OnError: %22 + error, Toast.LENGTH_LONG).show();
 %0A    %7D%0A%7D

make it call VKSdk.login() and display user id/error