some util code in android.