android-4.4-kitkat
Why can’t we use a Translucent system bars with and ActionBar
You can create your own theme with android.R.attr#windowTranslucentStatus set to true to achieve the same effect without losing the ActionBar. From the docs: Flag indicating whether this window requests a translucent status bar. Corresponds to {@link android.view.WindowManager.LayoutParams#FLAG_TRANSLUCENT_STATUS}. Styles – Remember, these would go in values-v19. <style name=”TranslucentStatusBar” parent=”@android:style/Theme.Holo.Light”> <item name=”android:actionBarStyle”>@style/TranslucentActionBar</item> <item name=”android:windowTranslucentNavigation”>false</item> <item name=”android:windowTranslucentStatus”>true</item> <item … Read more
Sticky immersive mode disabled after soft keyboard shown
Taken from this sample app by Google, you need to append this to the end of your activity, before the last end bracket: @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); // When the window loses focus (e.g. the action overflow is shown), // cancel any pending hide action. When the window gains focus, // hide … Read more
MediaPlayer : Should have subtitle controller already set: KitKat
Looking at a previous discussion on StackOverflow, and the referenced Android commit where this was introduced, the code above might not completely initialize the MediaPlayer object. The KitKat example code for media playback suggests that you should call: mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); immediately after you construct the MediaPlayer, and before you call its setDataSource method.
Android “couldn’t log to binary event log: overflow”
I don’t know if you know this but 4.4 has some issues. In order for it to work you will have to change your project’s target SDK to 4.4 KitKat or if you haven’t installed the version yet go into android manager and get the appropriate files. Even then your app may not work, if … Read more
Permanently hide Android Status Bar
We could not prevent the status appearing in full screen mode in kitkat devices, so made a hack which still suits the requirement ie block the status bar from expanding. For that to work, the app was not made full screen. We put a overlay over status bar and consumed all input events. It prevented … Read more