Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL url = new URL("https://oauth.vk.com/token?grant_type=password&client_id=3697615&client_secret=AlVXZFMUqyrnABp8ncuU&username="+ URLEncoder.encode(String.valueOf(login), "utf-8")+"&password="+URLEncoder.encode(String.valueOf(password), "utf-8"));
- HttpURLConnection connection = (HttpURLConnection)url.openConnection();
- connection.setRequestMethod("GET");
- Toast.makeText(LoginActivity.this,
- connection.getResponseMessage(),
- Toast.LENGTH_SHORT).show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement