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

Entries from 2016-10-01 to 1 month

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