android-5.0-lollipop

No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String)

瘦欲@ 提交于 2020-01-14 07:23:11
问题 Getting the error whenever I install the app on the device. 03/24 18:56:08: Launching app $ adb push /home/itstym/AndroidStudioProjects/hlthee/app/build/outputs/apk/app-debug.apk /data/local/tmp/user.com.hlthee $ adb shell pm install -r "/data/local/tmp/user.com.hlthee" java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties

error <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing

一笑奈何 提交于 2020-01-13 14:04:28
问题 I had update my eclipse Version: 4.2.2 and android SDK with API 23. When i created an app then get an error like this. [2015-10-12 17:03:05 - appcompat_v7] ERROR: In MenuView, unable to find attribute android:preserveIconSpacing and warning [2015-10-12 16:50:14 - appcompat_v7] WARNING: unable to write jarlist cache file D:\lolipop Workspace\appcompat_v7\bin\jarlist.cache Syntax error, insert "}" to complete ClassBody R.java /appcompat_v7/gen/android/support/v7/appcompat line 3065 Java Problem

What is a JobService in Android

*爱你&永不变心* 提交于 2020-01-13 09:35:11
问题 I am inspecting the latest samples in Android-L developer SDK. There is a sample class in android-L/ui/views/Clipping/ClippingBasic called TestJobService . It extends from JobService, which in turn extends from Service . I see that JobService is a class in android.jar, but I cannot find any information on it in the dev guides, nor in the Android sourcecode www.androidxref.com. Has anybody seen this class or know what it's purpose is? 回答1: It's a new type of service, that is invoked for tasks

GCC: -static and -pie are incompatible for x86?

瘦欲@ 提交于 2020-01-12 07:35:09
问题 I'm recompiling some executable for Android 5.0 as it requires executables to be PIE . I was able to recompile it for ARM with just adding some arguments while configuring (with standalone toolchain): export CFLAGS="-I/softdev/arm-libs/include -fPIE" export CPPLAGS="$CPPFLAGS -fPIE" export CXXLAGS="$CXXFLAGS -fPIE" export LDFLAGS="-L/softdev/arm-libs/lib -static -fPIE -pie" No error for ARM: configure:3406: arm-linux-androideabi-gcc -o conftest -I/softdev/arm-libs/include -fPIE -L/softdev/arm

Using RecyclerView with Card

て烟熏妆下的殇ゞ 提交于 2020-01-12 07:05:25
问题 I have some RecyclerView with Card items. And on preLollipop devices it looks fine. But on Lollipop it looks without any spacing between child cards. I tried to use margin and padding, but it didn't help. When I use margin on lollipop it looks fine, but with the same margin on preLollipop spacing is very big. Once again: why is there different spacings? Which property should I use to fix it? 回答1: This is happening because on L, shadows are outside the the View bounds but pre-L, they are

Using RecyclerView with Card

不羁岁月 提交于 2020-01-12 07:04:30
问题 I have some RecyclerView with Card items. And on preLollipop devices it looks fine. But on Lollipop it looks without any spacing between child cards. I tried to use margin and padding, but it didn't help. When I use margin on lollipop it looks fine, but with the same margin on preLollipop spacing is very big. Once again: why is there different spacings? Which property should I use to fix it? 回答1: This is happening because on L, shadows are outside the the View bounds but pre-L, they are

Home button in action bar not working in Lollipop

妖精的绣舞 提交于 2020-01-11 19:54:11
问题 I have a problem, cause I'm developing app for lollipop without support library v7 , so I need to use standard ActionBar . Previously I used setHomeButtonEnabled in multiple activities with actionBar . When I switched app theme to material everything is working fine, except setHomeButtonEnabled method. Title is not clickable. Help! 回答1: For some reason, someone at Google decided that these should become no-op's. This can be seen below. ToolbarWidgetWrapper.java @Override public void

Creating a navigation drawer over action bar with header

Deadly 提交于 2020-01-11 12:02:10
问题 I have a translation app that helps people to learn a language and play games to check their learning. The app already has a navigation drawer but it appears under the action bar with items. I want to change the navigation drawer to make it appear over the action bar. Very much preferred that the navigation drawer has a google play store style header. I have tried many solutions but I am not able to get it done. Here are some examples : [1]Android Navigation Drawer on top ActionBar 1st and

Creating a navigation drawer over action bar with header

六月ゝ 毕业季﹏ 提交于 2020-01-11 12:01:12
问题 I have a translation app that helps people to learn a language and play games to check their learning. The app already has a navigation drawer but it appears under the action bar with items. I want to change the navigation drawer to make it appear over the action bar. Very much preferred that the navigation drawer has a google play store style header. I have tried many solutions but I am not able to get it done. Here are some examples : [1]Android Navigation Drawer on top ActionBar 1st and

Glitch when animating nested views in a shared element Activity transition?

只愿长相守 提交于 2020-01-10 10:17:19
问题 I've been messing around with the new APIs in Android 5.0 and have been trying to figure out whether or not it is possible to animate both a ViewGroup and one of its children separately as shared elements during an Activity transition. The screenshots below gives a simplified example of what I am trying to achieve: In the first activity, the dark gray box is a ViewGroup centered in the screen and the red box is its child View (the layout XML code I am using can be found here). When the user