Last active
April 18, 2017 20:24
-
-
Save kmerrell42/7468fde0166704378f242611464141aa to your computer and use it in GitHub Desktop.
Handle request permission
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 class LaunchActivity extends AppCompatActivity { | |
... | |
@Override | |
public void onRequestPermissionsResult(int requestCode, | |
@NonNull String permissions[], | |
@NonNull int[] grantResults) { | |
switch (requestCode) { | |
case REQUEST_CODE_READ_SMS: { | |
// Unconditionally start the phone number confirmation activity. | |
startActivity(new Intent(this, PhoneNumerConfirmationActivity.class)); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment