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
12
votes
4 answers

Building an Android app with targetSdkVersion of 25 and minSdkVersion 19

I have an Android app that has a targetSdkVersion of 25. It runs great on API 21+, however, I am trying to fix it to run on API 19+ (KitKat). My app does use Material Design, which I know was introduced in API 21, however I have seen here that there…
Brett
  • 11,637
  • 34
  • 127
  • 213
12
votes
3 answers

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 18 - 720x1280 - 4.3 failed: Instrumentation run…
Graeme
  • 1,107
  • 2
  • 12
  • 30
12
votes
1 answer

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 queue size limit is exceeded. A clever user at…
12
votes
5 answers

Android Studio can't run application on device: stuck on "Waiting for process: "

When trying to debug my application on my Samsung Galaxy S4, I get this output: Waiting for device. Target device: samsung-samsung_sgh_i337-8c8aa2c7 Uploading file local path:…
awebberley
  • 123
  • 1
  • 1
  • 5
12
votes
1 answer

Check if gps is on In Kitkat (4.4)

Below kitkat, I get if gps is on with providers list String providers = Secure.getString(context.getContentResolver(), Secure.LOCATION_PROVIDERS_ALLOWED); if (TextUtils.isEmpty(providers)) { return false; } return…
ChangUZ
  • 5,380
  • 10
  • 46
  • 64
12
votes
2 answers

Set alarm from Android 4.4 Kitkat

In Android 4.4 APIs page I read: When you set your app's targetSdkVersion to "19" or higher, alarms that you create using either set() or setRepeating() will be inexact. [CUT] This inexact batching behavior applies only to updated apps. If…
crbin1
  • 2,219
  • 3
  • 22
  • 29
12
votes
4 answers

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 authorization. After flashing my phone to KitKat, I…
Jason
  • 878
  • 2
  • 9
  • 21
12
votes
3 answers

Android 4.4 http api bugs?

I decided to start testing my app with Android 4.4 and noticed that the Android HTTP connection APIs are much stricter than before? I have never had this issue and I assume it is some type of bug. I'm connecting to SHOUTcast broadcasts that contain…
Jona
  • 13,325
  • 15
  • 86
  • 129
12
votes
4 answers

Problems with fonts in android 4.4

Today i've updated my android sdk to 19 api, and while testing my app I have encountered some bugs in 19 api: drop some fonts in text view, or have problems with it's size. first screen, code of one view: tvBalance = new TextView(getContext()); …
Anton
  • 251
  • 3
  • 13
11
votes
2 answers

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate on Android 4.x and 5.x

I am running my app on Android 4.4.2 and it throws this error: 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at…
Jaime Montoya
  • 6,915
  • 14
  • 67
  • 103
11
votes
0 answers

Avoid user dialog when bonding with BLE device using PIN on latest API (Lollipop)

I am bonding/pairing with a Bluetooth Low Energy device from my Android app. When bonding is initiated, an "Enter PIN"-dialog is shown. It automatically disappears when I set pin from code. The dialog appears and disappears slow enough to confuse…
11
votes
1 answer

SwipeRefreshLayout is hidden behind ActionBar with transparent status bars

I'm having some trouble making my SwipeRefreshLayout visible when using transparent navigation, and status bars (API Level 19). That is to say, its currently under the status bar (at the top of the screen), when I want it to be under the actionbar.…
11
votes
2 answers

BLE Device disconnect with Android device automatically. Android BLE

I'm using Android Nexus 7 to connect a device via Bluetooth Low Energy link. I'm able to connect the device, and stay connected if I don't do any communication with the device. However, if I enable the notification of one specific characteristic by…
11
votes
1 answer

Notification API in Android Chrome browser

My web application uses the Notification API. I thought KitKat's Chrome browser was supposed to have it, or at least the old webkitNotifications. But both window.Notification and window.webkitNotifications are undefined in my tests in Chrome in…
Denys Séguret
  • 372,613
  • 87
  • 782
  • 758
11
votes
3 answers

MediaPlayer randomly stops on Android 4.4 (19)

My app is streaming audio fine on all devices except Nexus 5. On Nexus 5, the MediaPlayer randomly stops playing. Not sure if the changes with respect to Loudness (http://developer.android.com/about/versions/android-4.4.html#Multimedia) in 4.4 has…
b.lyte
  • 6,518
  • 4
  • 40
  • 51