Created
October 22, 2019 15:42
-
-
Save BurningDroid/3dad999b2de5b3e9d487e0747b31b7cf to your computer and use it in GitHub Desktop.
[Android] startActivityForResult 사용 시 주의할 점 code 1
This file contains hidden or 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
static final int PICK_CONTACT_REQUEST = 1; // request code | |
private void pickContact() { | |
Intent pickContactIntent = new Intent(Intent.ACTION_PICK, Uri.parse("content://contacts")); | |
pickContactIntent.setType(Phone.CONTENT_TYPE); | |
startActivityForResult(pickContactIntent, PICK_CONTACT_REQUEST); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment