Skip to content

Instantly share code, notes, and snippets.

Christian Melchior cmelchior

View GitHub Profile
cmelchior / material_design_colors.xml
Last active Aug 29, 2015
Material design colors reference sheet, credit: Marcel Ulbrich
View material_design_colors.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Name this file “colors.xml” -->
<!-- Then place it in your project's “res/values/” folder. -->
<!-- Created by Marcel Ulbrich -->
<!-- -->
<!-- Updated 2014-12-09 to reflect Google's latest changes -->
<color name="red_050">#FFEBEE</color> <!-- Use with black text -->
<color name="red_100">#FFCDD2</color> <!-- Use with black text -->
cmelchior /
Created Feb 20, 2014
Bash script for pulling APK's from Non-rooted android devices
if test $# -lt 1 ; then
echo "Usage: <GooglePlayPackageName>"
exit 1
APK_PATH=`adb shell pm list packages -f -3 | grep $PACKAGE | cut -d'=' -f 1 | cut -c9-`
echo "Pulling $APK_PATH from device"
echo `adb pull ${APK_PATH} ./${PACKAGE}.apk`
cmelchior / AndroidManifest.xml
Last active Dec 25, 2015
Adding support for ".res-auto" in ContentProvider authorities in AndroidManifest.xml. This replaces ".res-auto" with the current package name, making it possible to install multiple build variants on the same devices without getting [INSTALL_FAILED_CONFLICTING_PROVIDER]
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
android:versionName="@string/client_info" >
<!-- ... -->
You can’t perform that action at this time.