Skip to content

Instantly share code, notes, and snippets.

View abhi007tyagi's full-sized avatar

Abhinav Tyagi abhi007tyagi

View GitHub Profile
@passiondroid
passiondroid / RuntimePermissionHelper.java
Last active February 26, 2021 05:51
Android Runtime Permission Helper class
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.util.Log;