android-5.0-lollipop

Error inflating class android.support.v7.widget.Toolbar in Android Lollipop

て烟熏妆下的殇ゞ 提交于 2019-12-11 11:06:36
问题 I use the android.support library for my project, I have developed my app using android 4.4 and everything works good but my problem comes when I try to run the application in a device with Android Lollipop. When it loads the Activity with the Toolbar, the application stops and returns this error. Error inflating class android.support.v7.widget.Toolbar I have found the same problem on the internet but I haven't found the solution in the answers. This is my styles.xml <!-- Base application

After Updating ADT 23, SDK path miss from preference [duplicate]

狂风中的少年 提交于 2019-12-11 09:08:56
问题 This question already has answers here : Update Eclipse with Android development tools v. 23 (43 answers) Closed 5 years ago . After Updating the ADT 23 getting the error for annotation tried too much appreciated solutions but can't able to solved it. Then after new problem arise that the SDK path not Found in Preference when tried to set Path again There is no enable ok button. NOTE: Using ADT bunble eclipse "Not specific eclipse version JUNO or etc". Using Ubuntu OS 12.4 回答1: I got The

ValueAnimator doesn't work as expected when battery saver is enabled(>= API 21)

橙三吉。 提交于 2019-12-11 08:46:07
问题 ValueAnimator doesn't seem to repeat or play animators that are repeated infinitely when the battery saver is enabled in Android lollipop or higher. animator = ValueAnimator.ofInt(0,timePeriods.length-1); animator.setInterpolator(new LinearInterpolator()); animator.setEvaluator(new TypeEvaluator() { @Override public Object evaluate(float v, Object o, Object t1) { int time = 0 ; int timeElapsed = (int)(v*totalTime) ; for (int i = 0; i < timePeriods.length; i++) { time = time + timePeriods[i];

popup window is not properly shown in android L

混江龙づ霸主 提交于 2019-12-11 07:14:53
问题 this is how it looks like on android L : where as on jelly bean it looks like : here is layout xml file: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:customfont="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:background="@color/black_bg_dialog" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_marginRight="30dp" android:layout

gms.analytics.GoogleAnalytics - NoClassDefFoundError

孤街浪徒 提交于 2019-12-11 04:09:01
问题 My Aplication Class public class MyApplication extends Application { private static final String PROPERTY_ID = "UA-XXXXXX-X"; public static int GENERAL_TRACKER = 0; public enum TrackerName { APP_TRACKER, // Tracker used only in this app. GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: // roll-up tracking. ECOMMERCE_TRACKER, // Tracker used by all ecommerce transactions from a // company. } HashMap<TrackerName, Tracker> mTrackers = new HashMap<TrackerName, Tracker>();

Android L - android.graphics.outline

你说的曾经没有我的故事 提交于 2019-12-11 03:28:24
问题 According to the android developer page for the developer preview of L, it's possible to use the Outline class & define outlines for view's to display the shadows in the correct way. (http://developer.android.com/preview/material/views-shadows.html#shadows) In my case, the "L"-sdk I use, didn't found it. Therefore I couldn't import and use the class. According to the test project, stored in sdk/samples/android-L/ui/views/Elevation/ElevationDrag this class should be stored in "android.graphics

How Lists (specifically, RecyclerView with CardViews) in Android work

别来无恙 提交于 2019-12-11 03:17:35
问题 Forgive me for asking this question, but I am new to Android development and although I am trying to go through the basics on the developer.android.com website, most of the samples (even though they say they're built for Android Studio) are not already setup to use Gradle and thus do not build unless you migrate them over to Gradle, and when you do that it either doesn't do anything or you get tons of errors. I've been trying to learn how to create Lists. I've read a bunch of tutorials on

Jodatime issues on Android 5.0

和自甴很熟 提交于 2019-12-11 03:16:18
问题 My app has been working for some time, but after the release of Android 5.0 it crashes on devices running this version. I'm using JodaTime 2.6 for date handling and it's this library that suddenly throws the following exception: java.lang.IllegalArgumentException: Invalid format: "6:06:00 AM" is malformed at "AM" Ive verified that the corresponding string I'm trying to parse has the correct format. UPDATE(Here is code that fails) private void doSomething(DateTime time, String timeToParse,int

Lollipop: making my activity stay in the task that launched the share intent

落花浮王杯 提交于 2019-12-11 02:58:27
问题 “My First App” has an activity that handles a “share” intent. Its activity in AndroidManifest.xml looks like this: <activity android:name="com.example.foo.myfirstapp.MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="image/jpeg"/> </intent-filter> </activity> In KitKat, sharing an image from the album to “My First App” causes MainActivity to be

WebView media content stops when the screen is locked ( activity's onStop is called)

瘦欲@ 提交于 2019-12-11 02:39:30
问题 I have an App that plays a video inside a WebView on my MainActivity. The problem I am having is that the video is pausing whenever I lock the screen (Activity's onStop is called, that is when the video in the WebView is paused). But this behavior only occurs on Apis >= Lollipop(5.0) . I searched everywhere for a solution, but I could not find anything. I just want the video to keep playing even when the user is on LockScreen. 回答1: If your WebView is pausing because of the onStop, you can