wesley tanaka

Peek-a-boo

()

Move Android SearchView Icon inside the text field

()

The Android SearchView, which allows you to display a search UI embedded inside the ActionBar at the top of your activity, can sometimes display a magnifying glass icon outside and to the left of the EditText like this:

and other times display the magnifying glass icon inside the EditText like this, much more like the search dialog:

Happy and Sad

()

Avocado

()

Android AccountManager com.google auth token types

()

Several AccountManager methods accept a String authTokenType which controls the "They are requesting permission to" list in the Permission request activity.

Here are some available values of authTokenType for the "com.google" accountType:

Make iTerm always quit when closing last window

()

While iTerm is not running, run:

defaults write com.googlecode.iterm2 MinRunningTime -float 0

link

Android Menu vs Action Bar

()

The options menu in Android will be displayed differently in the UI of your app depending on the value of android:targetSdkVersion that you set in AndroidManifest.xml. If android:targetSdkVersion is not set, or is set to a value less than 11, you will always get a grid of up to six menu items in one or two rows near the bottom of the screen.

View HTTP requests made by Internet Explorer

()

Tools that can inspect HTTP traffic coming from IE8, IE9, IE10 etc.Browser plugins

Network sniffers

Detect if Android application is running inside a unit test

()

I wanted to disable ACRA in an Android application while it was being unit tested by the android.test framework, so that crashes in worker threads would get detected by the test runner as failures, instead of getting reported to ACRA.

Ryan saying "apple"

()
Syndicate content
by Wesley Tanaka