Skip to content

Instantly share code, notes, and snippets.

cp /usr/share/vim/vim74/vimrc_example.vim ~/.vimrc
@cbarraco
cbarraco / Open package without activity using ADB
Created January 22, 2014 02:01
If you only know the package name of the app you want to launch but not the name of it's main activity, use this command. Just replace com.android.chrome with the package name of the app you want to open. The monkey command is used for making random touch and keyboard inputs on the connected device. This command only specifies that one event can…
adb shell monkey -p com.android.chrome -c android.intent.category.LAUNCHER 1
@cbarraco
cbarraco / install android environment
Last active December 29, 2015 10:08
Uninstalls OpenJDK and Installs the Oracle JRE & JDK and the Android SDK & NDK in Ubuntu. Basically a script version of http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux with the Android SDK and NDK thrown in.
echo "*******************************************"
echo "********** Uninstalling Open-JDK **********"
echo "*******************************************"
sudo apt-get purge openjdk-\*
echo "***************************************"
echo "********** Downloading Files **********"
echo "***************************************"
wget "http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz"
wget "http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2"