Questions tagged [android-4.4-kitkat]

Android 4.4 (codename KitKat) is API level 19 of the mobile operating system developed by Google.

Google released Android 4.4 (KitKat) on 31 October 2013. The Nexus 5 was the first device to officially ship with it, with Nexus 7 receiving the update soon after.

More Info:

1483 questions
212
votes
9 answers

Get real path from URI, Android KitKat new storage access framework

Before the new gallery access in Android 4.4 (KitKat) I got my real path on the SD card with this method: public String getPath(Uri uri) { String[] projection = { MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(uri, projection,…
Álvaro
  • 2,872
  • 4
  • 20
  • 25
154
votes
18 answers

windowSoftInputMode="adjustResize" not working with translucent action/navbar

I have problems with the translucent actionbar/navbar in the new Android KitKat (4.4) and the windowSoftInputMode="adjustResize". Normaly, changing the InputMode to adjustResize, the app should resize itself when keyboard is shown, but here it…
112
votes
8 answers

How do I maintain the Immersive Mode in Dialogs?

How do I maintain the new Immersive Mode when my activities display a custom Dialog? I am using the code below to maintain the Immersive Mode in Dialogs, but with that solution, the NavBar appears for less than a second when I start my custom…
VanDir
  • 1,980
  • 3
  • 23
  • 41
82
votes
1 answer

Bluetooth hands free client volume control

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…
Distwo
  • 11,569
  • 8
  • 42
  • 65
76
votes
6 answers

How does evaluateJavascript work?

I'm trying to use the new evaluateJavascript method in Android 4.4, but all I ever get back is a null result: webView1.evaluateJavascript("return \"test\";", new ValueCallback() { @Override public void onReceiveValue(String s) { …
CodingIntrigue
  • 75,930
  • 30
  • 170
  • 176
57
votes
6 answers

ADT 22.3 (android 4.4) - getting error "After scene creation, #init() must be called"

After installing the new ADT (22.3.0.v201310242005-887826) which supports Android 4.4 (KitKat), I keep getting the error as shown here: An internal error has occurred In the list of errors, I see multiple items of "RenderPreview", and when I…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
57
votes
9 answers

Impossible to rotate the emulator with android 4.4

I've updated my sdk to the latest version (android 4.4) and I started the emulator, but now it seems not possible to rotate the screen with CTRL+F11, the screen change but all the applications don't change. I don't know if it's a related issue but I…
greywolf82
  • 21,813
  • 18
  • 54
  • 108
55
votes
6 answers

execute shell command from android

I'm trying to execute this command from the application emulator terminal (you can find it in google play) in this app i write su and press enter, so write: screenrecord --time-limit 10 /sdcard/MyVideo.mp4 and press again enter and start the…
Giovanni Mariotti
  • 615
  • 1
  • 7
  • 11
52
votes
1 answer

How to record screen and take screenshots, using Android API?

Background Android got a new API on Kitkat and Lollipop, to video capture the screen. You can do it either via the ADB tool or via code (starting from Lollipop). Ever since the new API was out, many apps came to that use this feature, allowing to…
49
votes
10 answers

isValidFragment Android API 19

When I try my app with Android KitKat I have an error in PreferenceActivity. Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid! com.crbin1.labeltodo.ActivityPreference has not checked…
crbin1
  • 2,219
  • 3
  • 22
  • 29
46
votes
6 answers

Android KitKat securityException when trying to read from MediaStore

java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{430b1748 29271:com.x.x.x/u0a88} (pid=29271, uid=10088) requires android.permission.MANAGE_DOCUMENTS or…
serenskye
  • 3,467
  • 5
  • 35
  • 51
45
votes
9 answers

HTML file input in android webview (android 4.4, kitkat)

I was using the on the android webview. I got it working thanks to this thread: File Upload in WebView But the accepted answer (or any other) no longer works with android 4.4 kitkat webview. Anybody knows how to fix it? It…
jcesarmobile
  • 51,328
  • 11
  • 132
  • 176
44
votes
14 answers

Why is FusedLocationApi.getLastLocation null

I am trying to get location by using FusedLocationApi.getLastLocation and I've got the location permissions in the manifest file:
42
votes
11 answers

Bluetooth HCI snoop log not generated

I'm running Android 4.4.2 and I enabled the "Bluetooth HCI snoop log" as described here Sniffing/logging your own Android Bluetooth traffic After turning bluetooth on and off I rebooted the phone. I could not find the log file in the expected…
Jack Shultz
  • 2,031
  • 2
  • 30
  • 53
42
votes
4 answers

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

My Android application (using native library) print this warning on Android 4.4 : linker mylib.so has text relocations. This is wasting memory and is a security risk. Please fix. Have you got an idea of what it is and how to fix it ? Thanks,
Jerome
  • 1,153
  • 1
  • 17
  • 28
1
2 3
98 99