Skip to content

Instantly share code, notes, and snippets.

View cameronmoreau's full-sized avatar

Cameron Moreau cameronmoreau

View GitHub Profile
@cameronmoreau
cameronmoreau / android_generate_key_hash
Last active August 29, 2015 14:14
Android Generate Key Hash
public static String printKeyHash(Activity context) {
PackageInfo packageInfo;
String key = null;
try {
//getting application package name, as defined in manifest
String packageName = context.getApplicationContext().getPackageName();
//Retriving package info
packageInfo = context.getPackageManager().getPackageInfo(packageName,