android-4.4-kitkat

Android BLE onCharacteristicChanged not called

≡放荡痞女 提交于 2019-12-25 05:45:34
问题 I'm working on a project which includes a Bluegiga BLE113 module and an Android app. On the Bluegiga module I've set up several characteristics. For one characteristic I defined a descriptor to activate the client notification (in My case, the client is the Android app.). The characteristic definition of the BLE113 module looks like this: : <characteristic uuid="dcfa2671-974d-4e4a-96cd-6221afeabb62" id="ez1_flow_data_out"> <!-- org.bluetooth.descriptor.gatt.characteristic_user_description -->

Cant change colorButtonNormal value to all buttons

倖福魔咒の 提交于 2019-12-25 04:11:52
问题 I am trying to make all buttons in my app have default color using colorButtonNormal in my style. It works nice on API 21 and above but under API 21 it only changes the background of some buttons and i dont know what is going wrong. styles.xml <resources xmlns:tools="http://schemas.android.com/tools"> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowContentOverlay">@null</item> <item name="android:textColorPrimary">@color/white</item> <item name=

Android KitKat sdcard write permission

社会主义新天地 提交于 2019-12-25 02:55:17
问题 In android KitKat there are some limitations for writing to SDcard. So my question: Is it always permitted to write to Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) even in KitKat? 回答1: Is it always permitted to write to Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) even in KitKat? If your app has requested the WRITE_EXTERNAL_STORAGE permission, then yes, as getExternalStoragePublicDirectory() points to external storage, which is

Android 4.4 sdcard access new rules: about saving a file that started an activity

末鹿安然 提交于 2019-12-24 19:04:25
问题 I read that with Android 4.4 there are new rules for saving files on sdcard by apps. I have a specific case to ask about: an app (activity) A starts another app (activity) B feeding it with a file:// url, say it's a txt file (B is a text editor); the app B opens the file and edits it. Is the called app B able to save the edited content on the same file? Or will the new rules prevent it? 来源: https://stackoverflow.com/questions/24683209/android-4-4-sdcard-access-new-rules-about-saving-a-file

android : NoClassDefFoundError for android 4.4 and below

只谈情不闲聊 提交于 2019-12-24 18:00:30
问题 My app gives NoClassDefFoundError for versions of sdk 19 or below. I had in my gradle android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.idg.mail" minSdkVersion 14 targetSdkVersion 23 multiDexEnabled = true } Now i tried to change it to compileSdkVersion 19 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.idg.gatcamail" minSdkVersion 19 targetSdkVersion 19 multiDexEnabled = true } i changed in app-> module settings - android - sdk as well

YouTube not working on Genymotion (Android 4.2.2 and 4.4.4)

耗尽温柔 提交于 2019-12-24 15:05:49
问题 I'm developing an app using Genymotion Android emulator and Apache Cordova. First of all, I've successfully installed Google Apps on both an emulated 4.2.2 and 4.4.4 devices. Whether if I try to play a video embedded in the Apache Cordova app using a regular or I open official YouTube app to play some video, I can't play videos. In the first case I get the "An error occured" error message, and when I try to play any video in the official YouTube app, it cries with a "connection lost" error.

In android, how to change the settings of Daydream from code?

那年仲夏 提交于 2019-12-24 12:33:57
问题 I want to write a application which can change the daydream setting. It will require to set the my own dream as selected and also make the when to play option as "Either". Is that possible to implement this feature in the sdk version 19? 回答1: If you want to set the daydream for the user, you cannot do this. You can, however, open the system settings in the right location so that the user can select from installed daydreams. You can provide a button to access Daydream Settings like so: public

Android 4.4 - Play default music player

牧云@^-^@ 提交于 2019-12-24 12:30:56
问题 Can anyone tell me why this is not working on Kitkat anymore and how to solve it? private Intent player; player = new Intent(Intent.ACTION_MEDIA_BUTTON); synchronized (this) { player.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY)); sendOrderedBroadcast(player, null); player.putExtra(Intent.EXTRA_KEY_EVENT, new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MEDIA_PLAY)); sendOrderedBroadcast(player, null); } 回答1: There is new method AudioManager

kitkat (API 19) inserting contact?

邮差的信 提交于 2019-12-24 11:49:50
问题 After searching almost the whole Internet already I have a really big headache from this problem. I have a code that works on any APIs, in addition to API 19 KitKat (Google Nexus). It is a typical code for adding/inserting contacts to device. Anyone have any ideas why this does not work right? ArrayList<ContentProviderOperation> op_list = new ArrayList<ContentProviderOperation>(); ContentProviderOperation.Builder builder = ContentProviderOperation .newInsert(RawContacts.CONTENT_URI); builder

Error java.lang.UnsatisfiedLinkError: dlopen failed when running application on Android 4.4

匆匆过客 提交于 2019-12-24 08:58:01
问题 Hello I found this exception when I run my application on Android kitkat 4.4 11-28 08:50:00.752: E/dalvikvm(10056): dlopen("/data/app-lib/com.vis.kotob-2/libdatabase_sqlcipher.so") failed: dlopen failed: cannot locate symbol "_ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEElj" referenced by "libdatabase_sqlcipher.so"... 11-28 08:50:00.762: E/AndroidRuntime(10056): FATAL EXCEPTION: main 11-28 08:50:00.762: E/AndroidRuntime(10056): Process: com.his.mojak, PID: 10056 11-28 08:50:00.762: E