If you’re thinking without writing, you only think you’re thinking.
(Leslie B. Lamport)

Entries from 2016-01-01 to 1 year

Get the SHA-1 fingerprint of the certificate

* To get the release certificate fingerprint: keytool -exportcert -list -v \ -alias <your-key-name> -keystore <path-to-production-keystore> * To get the debug certificate fingerprint: keytool -exportcert -list -v \ -alias androiddebugkey -keystore ~/.android/debug.keystore * Example:</path-to-production-keystore></your-key-name>…

Access a usb flash drive from the terminal

1.Find what the drive is called You'll need to know what the drive is called to mount it. To do that fire off: sudo fdisk -l You're looking for a partition that should look something like: /dev/sdb1. Remember what it's called. 2.Create a m…

Simple example of loader in android

User.java public class User { private String mName; public User(String mName) { this.mName = mName; } public String getmName() { return mName; } public void setmName(String mName) { this.mName = mName; } } DataLoader.java public class Data…

A deep dive into Android View constructors

blog.danlew.net

Programmatically set the listSelector for a ListView to the default for the current theme

private static void setDefaultListSelector(ListView listView, Context context) { TypedArray typedArray = context .obtainStyledAttributes(null, new int[]{android.R.attr.listSelector}, android.R.attr.listViewStyle, 0); Drawable drawable = ty…

Tips and tricks for android material support library

code.hootsuite.com

Get application version name

adb shell shell@device-name:/ dumpsys package your-package-name | grep version