Android runtime permissions- how to implement
What is “MY_PERMISSIONS_REQUEST_READ_CONTACTS” in this example? It is an int, to tie a particular requestPermissions() call to the corresponding onRequestPermissionsResult() callback. Under the covers, requestPermissions() uses startActivityForResult(); this int serves the same role as it does in startActivityForResult(). does that mean I should make a Constants.java and declare a public static int? I would just … Read more