Skip to content

Instantly share code, notes, and snippets.

View digitalprecision's full-sized avatar

Mike Purcell digitalprecision

View GitHub Profile
@digitalprecision
digitalprecision / gist:735820df14f696fc2c6c8b251b2b05d6
Created October 11, 2016 16:26
Android Webview (default) with Runtime Permissions via k0shk0sh PermissionsHelper
package com.shouttag.mothership;
import android.app.Activity; // Need for constants
import android.content.DialogInterface; // Needed for building out dialog box
import android.content.Intent; // Needed for intent interaction (camera)
import android.graphics.Color; // Needed for alert dialog option coloring
import android.support.annotation.NonNull;
import java.io.File; // Needed for storing image in temp file on device
import java.io.IOException; // Needed for storing image in temp file on device
import java.text.SimpleDateFormat; // Needed for date formatting