Thursday, April 24, 2014

Get navigation bar (TSB bar) height

The dim value is defined as com.android.internal.R.dimen.navigation_bar_height.

 final int naviHeight = mContext.getResources().getDimensionPixelSize(
                    com.android.internal.R.dimen.navigation_bar_height);

Monday, April 14, 2014

How to exclude activity from recent application list on Android

To forbidden your activity in the recent application list, just define this parameter in AndroidManifest.xml for the activity:

android:excludeFromRecents="true"

for example:
        <activity
            android:name="com.test.MainActivity"
            android:noHistory="true"
            android:screenOrientation="portrait"
            android:excludeFromRecents="true"
            android:label="@string/app_name">
            ......
         </activity>

Enable HP Zbook Thunderbolt 3 Dock on Ubuntu

As mention in previously post, I installed Ubuntu on my HP ZBook. After two days used all things work just fine, but the Thunderbolt 3 Dock ...