This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.text.Editable; | |
import android.text.TextUtils; | |
import android.text.TextWatcher; | |
import android.view.Gravity; | |
import android.widget.EditText; | |
import android.widget.Toast; | |
public class KonamiCodeHelper { | |
private static final String KONAMI_CODE = "UUDDLRLRBA"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void connectFit() { | |
if (TextUtils.isEmpty(mGoogleMail)) { | |
Intent intent = AccountPicker.newChooseAccountIntent(null, null, new String[]{"com.google"}, | |
false, null, null, null, null); | |
startActivityForResult(intent, GOOGLE_ACCOUNT_PICKER_REQUEST); | |
return; | |
} | |
new AsyncTask<Void, Void, String>() { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final int PICK_PHOTO_FOR_AVATAR = 0; | |
public void pickImage() { | |
Intent intent = new Intent(Intent.ACTION_GET_CONTENT); | |
intent.setType("image/*"); | |
startActivityForResult(intent, PICK_PHOTO_FOR_AVATAR); | |
} | |
@Override | |
public void onActivityResult(int requestCode, int resultCode, Intent data) { |