android-4.4-kitkat

Gallery has stopped while cropping image in kitkat Nexus7

只谈情不闲聊 提交于 2019-11-27 14:31:44
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 version for it with "Gallery Stopped" error. I have implemented code and all other neccessary permission in manifest file still not getting response. So can anybody resolve this? Here is my Code: final String[] items = new String[] { "Take from camera", "Select from gallery" }; ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.select_dialog_item, items); AlertDialog

Using new IMMERSIVE mode in android kitkat

你。 提交于 2019-11-27 12:12:47
问题 I want to make an activity to go into IMMERSIVE mode and hide top and buttom system bars as soon as it starts. In developers site of android they say I should use setSystemUiVisibility() and provide SYSTEM_UI_FLAG_IMMERSIVE and SYSTEM_UI_FLAG_HIDE_NAVIGATION . How can I do this in the OnCreate() method of the activity? I think the setSystemUiVisibility is not provided in the Activity class and it should happen in a view. Is there a workaround? UPDATE ok According to doorstuck I added the

Reliably get height of status bar to solve KitKat translucent navigation issue

放肆的年华 提交于 2019-11-27 12:06:48
问题 I am experimenting with the new Android 4.4 translucent navigation bars and would like to set the navigation bar as translucent using the FLAG_TRANSLUCENT_NAVIGATION flag. I only wish the navigation bar (back, home button etc) to be translucent - I want the status bar at the top of the screen to appear normally I.e. NOT translucent. The code I am using to achieve this is: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Window w = getWindow(); w.setFlags(WindowManager.LayoutParams

List of devices support HCE?

半世苍凉 提交于 2019-11-27 11:58:36
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 far: Notes: Not all KitKat devices support HCE. To detect HCE support, use this code snippet: boolean isHceSupported = getPackageManager().hasSystemFeature("android.hardware.nfc.hce"); Some people reported that KitKat HCE phones has "Tap & Pay" in NFC Setting. I don't know if using "Tap & Pay" as HCE detection method is valid because "Tap & Pay" can mean Tap & Pay using internal SE. It doesn't have to

transparent status-bar / system-ui on 4.4 Kit Kat [duplicate]

折月煮酒 提交于 2019-11-27 11:34:48
This question already has an answer here: How to make the navigation bar transparent 2 answers 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 ? Here you go - http://developer.android.com/about/versions/android-4.4.html#UI Translucent system bars You can now make the system bars partially translucent with new themes, Theme.Holo.NoActionBar.TranslucentDecor and Theme.Holo.Light.NoActionBar.TranslucentDecor. By enabling translucent system bars, your layout will fill the area behind the system

Does Android KitKat allows devices that support Bluetooth LE to act as a peripheral device?

*爱你&永不变心* 提交于 2019-11-27 11:33:04
问题 Till Android 4.3, an Android device with Bluetooth Low Energy support could only act as a central device. As is given in the Android 4.3 Bluetooth LE docs: Android 4.3 (API Level 18) introduces built-in platform support for Bluetooth Low Energy in the central role and provides APIs that apps can use to discover devices, query for services, and read/write characteristics. With the introduction of Android 4.4 KitKat, can it also behave as a peripheral device now? I couldn't find any

Can't access the secondary storage (the external removable micro sd card)

落爺英雄遲暮 提交于 2019-11-27 08:43:43
问题 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 files that are accessible only by the app, and the external storage relates to normal files that can be accessed by all apps and can be found both in the real internal storage card (the phone's sd card) and in the real external storage card (the removable micro sd card). My path of the phone's sd

Howto avoid the “EACCES permission denied” ON SDCARD with KITKAT 4.4.2 Version. New policy from google

試著忘記壹切 提交于 2019-11-27 08:03:09
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 permission denied". My app needs to write/unzip a zipfile, also write to a sqlite-database. How can this EACCES permission denied issue be solved with Android version 4.4.2 KITKAT ? WiFi I found a working solution to this issue in xda forum ; there is no need for rooting. Here's an example : /** * Returns an OutputStream to write to the file. The file will be truncated immediately. */ public OutputStream

Why is FusedLocationApi.getLastLocation null

纵饮孤独 提交于 2019-11-27 07:34:33
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.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> However, I am getting null when I request the location from the system. I was just testing turning off and on location services so it may be related to that (of course, it's ON when I'm trying this). But even after returning null, I'm waiting for onLocationChanged to be called and it's never called. I've also seen a

How to make the navigation bar transparent

隐身守侯 提交于 2019-11-27 07:14:25
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. deloreyk I have taken this from the change log for Android KitKat (4.4) : Translucent system bars You can now make the system bars partially translucent with new themes, Theme.Holo.NoActionBar.TranslucentDecor and Theme.Holo.Light.NoActionBar.TranslucentDecor . By enabling translucent system bars, your layout will fill the area behind the system bars, so you must also enable fitsSystemWindows for the portion of your layout that should not be covered by