Tag: android-5.0-lollipop

Android Studio – Lollipop, ADB, & Genymotion issues: Devices won't show up. “adb server is out of date. killing…”

Update (11/10/14): Genymotion has released 2.3.1 which fixes this issue. https://cloud.genymotion.com/page/changelog/#231 Update (10/21/14): Genymotion replied to my support email and indicated the solution recommended by @plackemacher below is the suggested fix at the moment. They are aware of the issue. Since upgrading to Lollipop, I’m having adb issues when using a Genymotion emulator. Devices don’t […]

INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE

I am using Google notifications in my app, and until now I have done below in the manifest: <!– GCM –> <uses-permission android:name=”android.permission.GET_ACCOUNTS” /> <!– GCM requires a Google account. –> <uses-permission android:name=”android.permission.WAKE_LOCK” /> <!– Keeps the processor from sleeping when a message is received. –> <uses-permission android:name=”com.google.android.c2dm.permission.RECEIVE” /> <!– This app has permission to […]

Action bar navigation modes are deprecated in Android L

Taking a look at the API diff report for the Android “L” preview, I see that all methods related to navigation modes in the ActionBar class (such as setNavigationMode(), addTab(), selectTab(), &c). are now deprecated. The documentation explains: Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other […]

Android Material Design Button Styles

I’m confused on button styles for material design. I’d like to get colorful raised buttons like in the attached link., like the “force stop” and “uninstall” buttons seen under the usage section. Are there available styles or do I need to define them? http://www.google.com/design/spec/components/buttons.html#buttons-usage I couldn’t find the default button styles. Example: <Button style=”@style/PrimaryButton” android:layout_width=”wrap_content” […]

Toolbar and Contextual ActionBar with AppCompat-v7

I am working on using the newly added Toolbar that was introduced in Lollipop and the AppCompat-v7 library. I followed this guide on setting up the Toolbar I noticed that when you invoke something that will bring up the contextual ActionBar (such as highlighting text for copy/pasting), that it will push the Toolbar down on […]

Material effect on button with background color

I am using Android v21 support library. I have created a button with custom background color. The Material design effects like ripple, reveal are gone (except the elevation on click) when I use the back ground color. <Button style=”?android:attr/buttonStyleSmall” android:background=”?attr/colorPrimary” android:textColor=”@color/white” android:textAllCaps=”true” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Button1″ /> The following is a normal button and the effects […]

Notification bar icon turns white in Android 5 Lollipop

I have an app showing custom notifications. The problem is that when running in Android 5 the small icon in the Notification bar is shown in white. How can I fix this?

Why is my Button text forced to ALL CAPS on Lollipop?

In my app “Tide Now WA” which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop – API 21). It writes some button text. This app writes the text correctly using Android 2.3 and Android 4.0. I.e. mixed capital and lower case letters. When same app is run on my Nexus 9 […]

This Activity already has an action bar supplied by the window decor

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.xxx.xxx.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar […]

appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

When attempting to use the latest appcompat-v7 support library in my project, I get the following error: /Users/greg/dev/mobile/android_project/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0/res/values-v11/values.xml Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.