Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void doFetchToken() {
- FetchToken fetchToken = new FetchToken(ProfileActivity.this, email, SCOPE) {
- @Override
- protected void onPostExecute(final String jsonResponse) {
- if(jsonResponse == null)
- return;
- runOnUiThread(new Runnable() {
- @Override
- public void run() {
- try {
- etUsername.setText(getFirstName(jsonResponse));
- etEmail.setText(email);
- } catch (JSONException e) {
- show(e.getMessage());
- }
- }
- });
- }
- };
- fetchToken.execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement