261 questions
213
votes
9
answers
276k
views
Get real path from URI, Android KitKat new storage access framework [duplicate]
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 };
...
58
votes
6
answers
158k
views
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/...
46
votes
9
answers
87k
views
HTML file input in android webview (android 4.4, kitkat)
I was using the <input type="file"> 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....
158
votes
19
answers
133k
views
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 ...
7
votes
1
answer
9k
views
Marking SMS messages as read/unread or deleting messages not working in KitKat
I have been working on an SMS application. Everything was smooth until yesterday, when I updated my Nexus 4 to Android 4.4, KitKat. Features such as marking an SMS as read/unread, and deleting all ...
38
votes
1
answer
26k
views
How to Print PDF using Android 4.4 Printing framework [closed]
How to print already downloaded PDF using Android 4.4 printing framework?
I viewed the developer documentation. but no luck. Any example would be helpful
12
votes
4
answers
24k
views
Host-based Card Emulation with Fixed Card ID
Android 4.4 introduced Host-based Card Emulation (HCE). As you know, all NFC cards come with a fixed card ID (NfcAdapter.EXTRA_ID).
My office door access usually detects the NFC card ID for the ...
80
votes
6
answers
146k
views
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<String>() {
@...
46
votes
6
answers
37k
views
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 ...
113
votes
8
answers
37k
views
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 ...
40
votes
9
answers
51k
views
Permanently hide Android Status Bar
I'm trying to hide the system Status Bar on an Android 4.4 device. This is for a kiosk-mode where my app will be the only app ever run on the device. The target device for now is a 2013 Nexus 7.
The ...
53
votes
1
answer
79k
views
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 ...
17
votes
2
answers
18k
views
How to persist permission in android API 19 (KitKat)?
In my application I store the path of image in my SQlite db for further use. The path that I get is
content://com.android.providers.media.documents/document/image%3A71964
When I retrieve this path ...
1
vote
2
answers
7k
views
How to fix android 4.4.2 error ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList
AndroidRuntime: FATAL EXCEPTION: main
Process: com.info.app, PID: 24503
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang....
32
votes
4
answers
19k
views
Android KitKat 4.4 Hangouts cannot handle Sending SMS intent
Code for sending sms that worked perfectly until Android 4.3 (Jelly Bean) and stopped working since 4.4 (KitKat)
I'm just preparing the text message for the user, but they need to choose the number ...
16
votes
1
answer
9k
views
Receive MMS messages in Android KitKat
So this video Android 4.4 SMS APIs from #DevBytes explains the recent changes to the SMS APIs in KitKat. They also provide a link with a sample project. https://commondatastorage.googleapis.com/...
43
votes
4
answers
68k
views
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.
What is it and ...
23
votes
6
answers
26k
views
Android pre-lollipop devices giving error "SSL handshake aborted: ssl=0x618d9c18: I/O error during system call, Connection reset by peer"
Iam having this strange issue in which the retrofit keeps throwing me
"SSL handshake aborted: ssl=0x618d9c18: I/O error during system call,
Connection reset by peer"
in kitkat, whereas the same ...
15
votes
3
answers
17k
views
How to set my sms app default in Android Kitkat?
I made an android sms app in which I am sending and receiving sms as android messaging app does so. Now I have set my target to 4.4 (Android KitKat version) but Android KitKat has new "Default ...
0
votes
1
answer
2k
views
Android detect usb storage for kitkat (4.4)
I've created a webview app which hosts a website within the app in the assets-directory.
I want to update the website via an USBstick inserted in my tablets usbslot.
I tried it first with the ....
39
votes
5
answers
38k
views
WebView Rendering Issue in Android KitKat
I've been working on an application which have a WebView in which a static page get loaded from the assets (Also using JavaScript). This WebView is not working in KitKat, it remains blank. I am aware ...
15
votes
2
answers
9k
views
In android 4.4, swiping app out of recent tasks permanently kills application with its service . Any idea why?
Unlike previous versions, in 4.4, swiping app out of recent tasks permanently kills app along with its service(like force-stop) even though it's running background services. It shows 0 processes 1 ...
57
votes
9
answers
26k
views
Impossible to rotate the emulator with android 4.4 [duplicate]
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 ...
49
votes
10
answers
17k
views
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....
44
votes
14
answers
58k
views
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:
<uses-permission android:name="android.permission....
33
votes
6
answers
29k
views
Unable to load image when selected from the gallery on Android 4.4 (KitKat) using PhoneGap Camera Plugin
I'm trying to set the source of an img tag in my app based on the image chosen from the device image gallery using the PhoneGap/Cordova Camera Plugin.
It has worked previously as intended on older ...
32
votes
2
answers
45k
views
How to make the navigation bar transparent
How can I make the navigation bar transparent on Android 4.4.X and above?
I have searched in the documentation, but found nothing about this.
17
votes
1
answer
18k
views
How to Record Android Screen Video programmatically in KitKat 4.4
I know this question has been asked so many times and there are so many questions, answers and discussions available. But I don't know what to do and what not to do.
I already referred to the links ...
15
votes
2
answers
34k
views
Autostart html5 video using android 4 browser
I want to auto-start android html5 video using android 4 ice cream sandwich browser. I tried many java-script functions and autobuffer autoplay tags of html5 video. But nothing worked. I start android ...
12
votes
2
answers
9k
views
Send SMS message using non default SMS app on Android 4.4
Can I send SMS using no default SMS app on Android 4.4 Kitkat?
It means, Can I send SMS without ability to write to SMS Provider?
I confused about that on Android 4.4 Kitkat.
I wonder I can just ...
22
votes
4
answers
70k
views
Howto avoid the "EACCES permission denied" ON SDCARD with KITKAT 4.4.2 Version. New policy from google
With the android kitkat 4.4.2 version is a new google policy implemented for writeaccess, which I do not understand so far.
I read a lot about this issue with other apps. They get a "EACCES ...
16
votes
5
answers
26k
views
List of devices support HCE?
As more and more devices have KitKat, I'm trying to compile a list of devices support HCE.
Does anyone have the list? Feel free to add comments to contribute to this list.
Below is what I have so ...
5
votes
1
answer
4k
views
Gallery has stopped while cropping image in kitkat Nexus7
Problem:
I am fetching image from gallery and after that cropped that image and its working perfect in all device. But it is giving me error while running in Nexus 7 kitkat since i have checked build ...
4
votes
1
answer
5k
views
How to delete particular inbox message in Android version 5.0 lollipop or in Kitkat?
I am making to delete particular sms of phone number task. when I am testing in motog or Android version 5.0's mobile. I can't delete particular number's sms. My code snippet is below.
public void ...
1
vote
1
answer
736
views
Sms doesn't save on Kitkat 4.4 <Already set as default messaging app>
My Sms app does not save the sms to the device even though I already set it as the default messaging. I need to support android pre-kitkat so I did a bit researching and had 2 BroadcastReceiver that ...
35
votes
5
answers
55k
views
Why can't we use a Translucent system bars with and ActionBar
While updating my apps to Kitkat, I just wanted to give them a gorgeous look on KitKat using the Translucent property:
Translucent system bars
You can now make the system bars partially translucent ...
30
votes
3
answers
81k
views
transparent status-bar / system-ui on 4.4 Kit Kat [duplicate]
This must be possible with 4.4, but I found no documentation on this yet - anyone knows how to make the status-bar / system-ui transparent/translucent ?
17
votes
2
answers
11k
views
Android KitKat 4.4 folder on sd card
We've just fallen foul of the new permissions that apply to writing files to sd cards (external storage) on Android 4.4 (EACCES Permission Denied)
Prior to KitKat we set our writable folder like this:...
8
votes
6
answers
13k
views
Android Webview set proxy programmatically Kitkat
How can we set proxy in Android webview programmatically on latest Kitkat release?
This SO link WebView android proxy talks about version upto SDK version 18. But those solution no more works with ...
49
votes
12
answers
104k
views
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 ...
36
votes
3
answers
26k
views
No activity found to handle Intent - android.intent.action.OPEN_DOCUMENT
I am trying my hand on Storage Access Framework of android 4.4
I have developed a dummy app which fires an intent on start of the activity.
Intent intent = new Intent(Intent....
22
votes
3
answers
4k
views
Global search not working as expected in Android 4.4
I've got an application that has two search suggestion providers that both extend SearchRecentSuggestionsProvider, and I've set it up correctly in the manifest file with the following Intent filter ...
21
votes
6
answers
5k
views
Dialog on Android KitKat seems to be cut
I used dialog theme for an Activity and it works fine on Android <= 4.3 but not on the latest KitKat 4.4.
Here's a screenshot of the problem:
Top of the layout is missing.
You can see that the ...
16
votes
4
answers
15k
views
Android4.4 can not handle sms intent with "vnd.android-dir/mms-sms"
My application has a button to start default sms activity and
it worked perfectly fine all android version except new one, Android 4.4(kitkat)
Here is the code:
public void onClick(View arg0) {
...
14
votes
2
answers
44k
views
Android 4.4 Step Detector and Counter
Is there any documentation around Android 4.4 KitKat's (well specifically Nexus 5 for now) step detector and counter APIs? I tried to search a lot but did not find anything.
I am planning to try my ...
12
votes
1
answer
11k
views
Avoiding RejectedExecutionException in Android 4.4 when app uses list
In Android 4.4 there seems to be a change in the code that causes list icons to be loaded using AsyncTasks. The result is that many of my users on Android 4.4 get RejectedExecutionException since the ...
12
votes
3
answers
7k
views
Tests fail after Espresso 2 upgrade (failed: Instrumentation run failed due to 'java.lang.IllegalAccessError')
After upgrading Espresso to version 2 none of my unit tests will run on pre-lollipop devices. See the trace below:
15:07:07.627 [WARN] [org.gradle.api.Project] Tests on Samsung Galaxy S3 - 4.3 - API ...
4
votes
3
answers
8k
views
Android 4.1 to 4.4 KitKat - Enable TLS 1.2 for API
In trying to disable TLS 1.0, there are KitKat devices needing access to my API. I have tried overriding the default socket factory without success. I have tried converting to okhttp. Still not ...
3
votes
4
answers
10k
views
Hide status bar in android 4.4+ or kitkat with Fullscreen
I'm using following code for hiding status bar with full screen purpose:
void HideEverything(){
if (Build.VERSION.SDK_INT < 16) {
getWindow().setFlags(WindowManager....
0
votes
1
answer
2k
views
Can't access the secondary storage (the external removable micro sd card)
Please read my question introduction before reading the real question:
In Android there are an internal storage and an external storage.
Don't be confused, because the internal storage relates to ...