android-5.0-lollipop

“You cannot install this app because another user has already installed an incompatible version on this device”

血红的双手。 提交于 2019-12-17 17:27:35
问题 Trying to install my own app from play store, it says "You cannot install this app because another user has already installed an incompatible version on this device" Note - I've uninstalled the debug version, and also cleared my Cache. Still can't get it to install from Play Store. My phone is not rooted, so as another similar answer here on stackoverflow suggests, I cannot use a root file explorer to clear data. 回答1: Refer this , Actually your debug version of the app didnt get uninstalled

Listview selector with colored background and ripple effect

♀尐吖头ヾ 提交于 2019-12-17 17:25:44
问题 Standard ListView selector in android L developer preview uses colorControlHighlight for the ripple effect on touch and has a transparent background in unfocused state. I would like to define a ListView item that has a colored background and still shows the ripple effect on touch with the same highlight color. Now, if I define the following drawable: <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHighlight"> <item android:drawable="

Android Lollipop Activity Screen corrupted [duplicate]

断了今生、忘了曾经 提交于 2019-12-17 16:29:32
问题 This question already has answers here : Android SystemUI glitches in Lollipop (6 answers) Closed 4 years ago . I build my App with Android Lollipop SDK (21). After opening some activities and close they, one activity has this corrupted screen. It looks like a Memory error, but this happens only on Android Lollipop devices. In the Logcat i cant see errors. Any ideas what this is? 回答1: webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); solves the problem. 回答2: It should also happen on 4.4.

Android : app loading library at runtime on Lollipop but not IceCreamSandwich

橙三吉。 提交于 2019-12-17 15:49:16
问题 I'm currently developping an Android app using Android Studio. Currently, the app is launching perfectly on Lollipop devices, but crashes at launch due to a ClassNotFoundException on pre-lollipop devices (i've tested on ICS and it fail). The missing class is always from an external librairies at runtime. Here's the gradle file : buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android

Checksum Error while provisioning Android Lollipop

痴心易碎 提交于 2019-12-17 15:37:40
问题 I get the message Couldn't use the admin app due to a checksum error. Contact your IT department when using the code below. Basically you have two Android Lollipop devices. One device is unprovisioned (Factory reset) and the other has this programming app on it. The programming app sends an NFC command to the unprovisioned device to tell it to start provisioning using the data you pass to it. There are three fields required (APK Location, APK file checksum, and package name) as per

Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1

♀尐吖头ヾ 提交于 2019-12-17 15:28:15
问题 Got the above error after downloading L preview release version in Android Studio , when my project had minSdkVersion 19. Furthermore, when setting mindSdkVersion as below: defaultConfig { .... minSdkVersion 'L' .... } I get dozens of errors as below, regarding resources from AppCompat-v7-21 : /home/user/workspace/project/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0-rc1/res/values-v21/values.xml Error:Error retrieving parent for item: No resource found that matches

Material Design backward compatibility

坚强是说给别人听的谎言 提交于 2019-12-17 15:26:24
问题 From examples provided on the Android Developer pages I see that new Views, like the RecyclerView , are backward compatible ( android.support.v7.widget.RecyclerView ). Are all the new things introduced in Material Design backward compatible (to which version)? 回答1: Updating this answer as Lollipop OS is officially released with support libraries, which you can use inside your project to provide compatibility to older versions. Support library: v7 appcompat library This library adds support

Styling ActionMode ActionBar in Android 5.0 Lollipop (with AppCompat)

情到浓时终转凉″ 提交于 2019-12-17 15:16:43
问题 I used this tutorial to facelift my Holo app for Lollipop: http://android-developers.blogspot.ru/2014/10/appcompat-v21-material-design-for-pre.html What I have: Theme <style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="windowActionModeOverlay">true</item> <item name="colorPrimary">@color/theme_primary</item> <item name="colorPrimaryDark">@color/theme_primary_dark</item> <item name="colorAccent">@color/theme_accent</item> </style> Toolbar layout <android.support.v7

How do I get a media projection manager without disturbing the current foreground process, except to ask for permission?

╄→尐↘猪︶ㄣ 提交于 2019-12-17 10:23:31
问题 Problem: I have a screenshot app that uses a floating overlay service for controls, and screen cast API Media Project Manager to get access to the screen. Sometimes when a device is low on memory Android restarts the service, and I lose my media projection. The only way I know of to reacquire a new media projection is to re-open an Activity that requests the permissions, and that would be the end of it, except for one problem. Certain apps, particularly games, seem to listen for when they

Android v21 Theme.Appcompat color accent is ignored, no padding on dialogs

北慕城南 提交于 2019-12-17 08:23:28
问题 I'm using ActionBarActivity from the Android 5 SDK and here is my theme.xml for v21 <style name="AppTheme_Light" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:colorPrimary">@color/abc1</item> <item name="android:colorPrimaryDark">@color/abc2</item> <item name="android:colorAccent">@color/abc3</item> </style> But the colors are ignored, and are replaced by a default teal color and all the dialogs appear without padding. Also, padding is also ignored in other places like