android-4.4-kitkat

ObjectAnimator starting with a frame jump on Android 4.4 (nexus 5) but not in 4.1 device

ぐ巨炮叔叔 提交于 2019-12-11 05:29:38
问题 I have a simple activity that shows an animation with ObjectAnimator. The animation is created and started in onCreate method of the activity, it is a very simple animation: cloudAnim = ObjectAnimator.ofFloat(cloud1ImageView, "x", sw); cloudAnim.setDuration(35000); cloudAnim.setRepeatCount(ValueAnimator.INFINITE); cloudAnim.setRepeatMode(ValueAnimator.RESTART); cloudAnim.setInterpolator(null); cloudAnim.start(); it simply displays a cloud on the left of the screen and moves from the left to

Android elements have white background behind the text on pre-lollipop and lower api versions

无人久伴 提交于 2019-12-11 04:39:57
问题 I use TabLayout for ViewPager <android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabBackground="@drawable/tab_color_selector" /> but here's the result elements with white background at kitkat tab_color_selector has 2 items with state_selected="true" and default. I also tried using tags like theese, but with no success: android:background="@android:color/holo_blue_dark" app:tabBackground="@android

google cloud messaging not working in android 4.4

纵饮孤独 提交于 2019-12-11 04:08:21
问题 I have an andorid application that uses GCM (not the new google cloud messaging API) the notification is working without any problems in all android vesion except 4.4 (nexus 5) <receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"> <!-- Receive the actual message --> <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE"/> <category android:name="com.PushNotifications"/> </intent-filter> <!--

Toasts stopped working in 4.4.2

爱⌒轻易说出口 提交于 2019-12-11 03:36:09
问题 In my app Toasts have worked fine until my RazrM phone was upgraded to 4.4.2. then they stopped. I have tried specifically runInUiThread and moving the call to initiate from different places in the code including in onCreate(). The issue [20373751] (Toast not appearing on Android 4.4 KitKat) proposes rebooting or specifically running on the UI thread. Neither makes a difference. That issue also questions if there is a bug in Nexus or KitKat. I have the Toasts running fine in 4.0.4 on a

Dialog rendered behind Home Activity

左心房为你撑大大i 提交于 2019-12-11 01:53:30
问题 I am working on a complex Android app and found a strange problem. The problem occurs when I start an activity to show a dialog. What have I tried I tried to search for similar problems ("Android activity blocked by home activity" etc) but could not find any. Due to the complex nature of my app, I still cannot find the minimum representation of the cause -- The Description section below cannot be used to reproduce the problem. It is just something that I think is closely related to the

Floating action button doesn't appear in kitkat

醉酒当歌 提交于 2019-12-11 01:05:04
问题 I have created a single page app where the floating action button is used to share content from the page. It works flawlessly in android lollipop but when i ran the app on kitkat, it doesn't show. Since the only interactive component is the FAB, the user is left with nothing to do but stare. I ran some search and found that the FAB should work perfectly on kitkat and that there are some issues only when it comes to lollipop(like padding). But, it works just fine in lollipop. Do I have to

android parse.com saving installation error. object not found for update

假如想象 提交于 2019-12-10 17:31:56
问题 I'm getting this error below and have no idea what to do about it. I don't even know what code to post here because i can't seem to find where in my code is causing this error. There is one more important thing to mention: This error doesn't happen on my first test device which is a HTC incredible running android 4.0.4, but my second test device which is a samsung tablet running 4.4.2 does receive this error. edit: I think that it has something to do with my parse installation object, as it

Completely Disable/Hide Status Bar on 4.4.2

孤者浪人 提交于 2019-12-10 16:26:37
问题 We are developing a launcher app for elderly people which has a very easy UI and we do not want to show status bar or notification drawer. Now i tried to disable Status Bar but it seems to re-appear when i pull down from the upper side of the screen. And if i pull-down for the second time notification drawer is opened. Is there a way to completely disable Status Bar? I checked the documentation on the following links but i think no solution is present. In API level 16 we were able to disable

Incorrect navigation while contact saving on Android

旧城冷巷雨未停 提交于 2019-12-10 14:53:56
问题 Although the documentation says that this bug is fixed (see: Add the navigation flag), I am experiencing the same problem. From my application I want to add new Android contact, and after the saving is completed I want to get back to my application (the activity that called the insert new android contact intent). That's why I am using: i.putExtra("finishActivityOnSaveCompleted", true); Adding this line, I get the expected behaviour on some phones, and others just behave differently (the user

How to completely disable SELinux in Android L in the init.rc file?

不想你离开。 提交于 2019-12-10 14:22:48
问题 I want to disable SELinux at boot time for Android L or 5. The reason is because my daemon is not begin executed on boot when it should due to SELinux problems. I have the following in my init.rc file: su 0 setenforce 0 service my_daemon /system/bin/my_daemon class main # Also tried: class core (but it didn't make a difference) user root group root However, on boot, I use adb shell to check if SELinux is disabled (using getenforce ) and it returns Enforcing . I want SELinux to be completely