android-4.4-kitkat

Enabling KioskMode in Android 4.4.2 with Root

倾然丶 夕夏残阳落幕 提交于 2019-12-03 15:11:53
I was able to enable kiosk mode in pre-KitKat-releases by killing the com.android.systemui process. Anyhow, this seems not to work in KitKat-releases: After killing the process the whole screen got stuck and I am not able to press any buttons. After inspecting similar apps from the Play Store I saw recent updates providing a compatibility for KitKat (e.g. Sure lock demo link ). Can somebody explain this KitKat-compatibility? Can somebody name a new way to hide the navigation and status bar in KitKat-releases with root priviledges? Best regards in advance, Greeny May be you can give a try with

ImageView scaleType=“fitXY” is not working in pre-lollipop device inside the Cardview | Android

江枫思渺然 提交于 2019-12-03 14:27:26
I have ImageView which is inside the CardView as below in my code. My ImageView scaleType="fitXY" is not working on pre-lollipop devices.But it looks better on Lollipop devices. Please look at below images. As we see in above image there is white padding around the imageview which i want to remove, I want to look alike image on both pre-lolipop and post lolipop devices. Please help me to short out from the problem. Thanks :) <android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_height="160dp" android:layout_marginRight="10dp" android:layout_marginTop="6dp" app

Stack notifications in Kitkat (API 19) using setGroup() not working

混江龙づ霸主 提交于 2019-12-03 13:40:11
I have a problem that I can't find the answer to. I have tried the AndroidDeveloper tutorials, I have searched here on stackoverflow and on google but either my search-skills are awefull or there's no answer I think answers my problem. I want to stack message notifications into one notification for all new messages when there are more than one. I can make a notification appear for each message but I cannot make a stack/summary notification. The best I get is this : http://developer.android.com/images/android-5.0/notifications/Summarise_Dont.png What I want is this : http://developer.android

How to correctly notify MediaScanner about a folder, even on Nexus/Kitkat devices?

和自甴很熟 提交于 2019-12-03 12:33:29
Background I'm making an app that downloads some images from the Internet into a specific folder that is defined as: final String pathToPutFiles = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + File.separator + DOWNLOAD_FOLDER_NAME; I wish to make the gallery and any app that shows media, to be notified of those images and be able to show them. Sadly I'm having problems on Nexus 4, which has Kitkat version (4.4.2 to be exact). Sometimes it works and sometimes it doesn't. The problem There are plenty of posts about this issue, and I've tried many of them and

Nexus 5 (Kitkat 4.4) won't authorize my Windows 8 computer

浪子不回头ぞ 提交于 2019-12-03 10:32:37
I'm trying to do some app development for Android with Eclipse and my Nexus 5. However, after the first time loading MyFirstApp from Eclipse, I can't seem to get the authorization right. When I run adb devices from the command prompt, I end up getting 0350b965215d9854 unauthorized or 0350b965215d9854 offline and even after restarting everything, I only sporadically get the authorization popup on my phone. Even if I select 'always allow from this computer' checkbox (pic below), my computer remains unauthorized. I have never had it remember authorizing my computer as the checkbox would suggest.

Making Host Card Emulation work for payment

老子叫甜甜 提交于 2019-12-03 10:14:22
问题 I've been using StackOverflow for years now, always finding answers to my questions before even asking them, but today I'm stuck. As I happen to have a working POS terminal (the EMV Chip&Pin kind), I wanted to look into host card emulation. The terminal works with the latest version of Tapp, so I know that the terminal is good and that my N7 with Kitkat can actually do payment (or at least the terminal do a series of good sounding bleeps and bloops, and the tablet launch Tapp's enrollment

How to implement a backstack when using the KitKat Transitions Framework

假如想象 提交于 2019-12-03 08:21:23
I am using the new KitKat Transitions API on Android. I have created two Scene objects using two layouts. I animate from Scene 1 to Scene 2 inside a Fragment . I want to automatically move back to the previous Scene when the user presses the back button. Is there some kind of built-in backstack mechanism when using Transitions , or do I have to roll my own? It is easy enough to call TransitionManager.go(scene1) , but I really do not want to implement an onBackPressed() listener in all my fragments that have Scene animations. I ended up rolling my own solution. Have your Activity implement this

Android 4.4 Kitkat custom view actionbar not filling the whole width

♀尐吖头ヾ 提交于 2019-12-03 07:07:59
问题 I am trying to have a Simple actionbar with a custom view, but I get the following result: For demonstration I created a simple xml with a yellow background color which is supposed to take the whole width. Here is the xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/yellow" android:orientation="vertical" > <TextView android

Bluetooth hands free client volume control

孤街醉人 提交于 2019-12-03 06:26:12
问题 I have an android device acting as a hands free client device using hfp. Using the following code: I am able to receive a call and the speakers and mic are working as expected. My problem is that I can't seem to control the volume. I tried using the following lines of code to find the correct stream, but none of them seem to work. I tracked the volume command being sent from the phone to the client in the class HeadsetClientStateMachine , line #1822 in the following link:

Custom View constructor in Android 4.4 crashes on Kotlin, how to fix?

自古美人都是妖i 提交于 2019-12-03 06:15:26
I have a custom view written in Kotlin using JvmOverloads that I could have default value. class MyView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyle: Int = 0, defStyleRes: Int = 0 ) : LinearLayout(context, attrs, defStyle, defStyleRes) All works fine in Android 5.1 and above. However it crashes in 4.4, since the constructor in 4.4 doesn't have defStyleRes . How could I have that supported that in 5.1 and above I could have defStyleRes but not in 4.4, without need to explicitly having 4 constructors defined like we did in Java? Note: The below would works