Skip to content

Instantly share code, notes, and snippets.

View philsong's full-sized avatar

S. philsong

View GitHub Profile
@philsong
philsong / PermissionUtils.java
Created October 26, 2016 02:47 — forked from tatocaster/PermissionUtils.java
Utility class for access to runtime permissions.
/**
* Utility class for access to runtime permissions.
*/
public abstract class PermissionUtils {
/**
* Requests the fine location permission. If a rationale with an additional explanation should
* be shown to the user, displays a dialog that triggers the request.
*/
public static void requestPermission(AppCompatActivity activity, int requestId,