android-4.4-kitkat

Android - Get result from change default SMS app dialog

余生颓废 提交于 2019-12-30 07:04:09
问题 I am working on restoring SMS on KITKAT. Referring to this article I have added the things which are required to set my app as default app for SMS. After adding all required things in manifest file I have write the following code: if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { mDefaultSmsApp = Telephony.Sms.getDefaultSmsPackage(mContext); Intent intent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT); intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME,

How should we use the mipmap folders added with android 4.4?

时光毁灭记忆、已成空白 提交于 2019-12-30 06:56:01
问题 I recently installed one more Android SDK to Android Studio, the SDK version 4.4 (API level 19), and after using it with my project, it added a set of mipmap folders in the project's res folder ( res/mipmap ). I neither understand why, or how to use them. I read another question about it here on SO. The answer to it said that: The mipmap folders are for placing your app icons in only. Any other drawable assets you use should be placed in the relevant drawable folders as before. According to

How should we use the mipmap folders added with android 4.4?

南笙酒味 提交于 2019-12-30 06:55:03
问题 I recently installed one more Android SDK to Android Studio, the SDK version 4.4 (API level 19), and after using it with my project, it added a set of mipmap folders in the project's res folder ( res/mipmap ). I neither understand why, or how to use them. I read another question about it here on SO. The answer to it said that: The mipmap folders are for placing your app icons in only. Any other drawable assets you use should be placed in the relevant drawable folders as before. According to

android app crash on android 4.4 due to gps permission denial

為{幸葍}努か 提交于 2019-12-30 05:01:06
问题 My android app is crashing when I try to enable GPS on my android 4.4 (Kitkat) . It's been working fine till Android 4.3 . I am using following code to turn on GPS Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE"); intent.putExtra("enabled", true); this.sendBroadcast(intent); In my Log Cat its giving security exception. My LogCat details are as :- 11-27 12:47:37.410: E/AndroidRuntime(3818): Caused by: java.lang.SecurityException: Permission Denial: not allowed to send

Native crash at /system/lib/libwebviewchromium.so on kitkat android 4.4

三世轮回 提交于 2019-12-30 02:45:10
问题 I get "Native crash at /system/lib/libwebviewchromium.so" errors many times for android 4.4+. There was no such problem before 4.4. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'samsung/ja3gxx/ja3g:4.4.2/KOT49H/I9500XXUFNB4:user/release-keys' Revision: '10' pid: 32504, tid: 32595, name: xxx.yyy >>> com.xxx.yyy <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000001 r0 83c80e70 r1 00000000 r2 00000001 r3 00000000 r4 7ea6d230 r5 7a806d20 r6

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

妖精的绣舞 提交于 2019-12-29 12:08:27
问题 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 click on any of them, I see: An internal error has occurred. After scene creation, #init() must be called When testing the new ADT on another computer, I can't see this error appearing there. This is very weird. Why do I get those errors, and what can I

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

為{幸葍}努か 提交于 2019-12-29 12:06:33
问题 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 click on any of them, I see: An internal error has occurred. After scene creation, #init() must be called When testing the new ADT on another computer, I can't see this error appearing there. This is very weird. Why do I get those errors, and what can I

How To Add Media To MediaStore on Android 4.4 KitKat SD Card With Metadata

我只是一个虾纸丫 提交于 2019-12-29 04:24:32
问题 Background: In Android 4.4, Google decided that apps should not have write access to SD cards. However, apps can write to /SDCard/Android/data/App Package Name. So this is what I've done. I have written an MP3 file to /Android/data/. I then want this MP3 file to show up in Android music players. I've tried the following... sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + filePath))); and.... MediaScannerConnection.scanFile(this, new String[] { file.toString() }, new

Keyboard hiding EditText when android:windowTranslucentStatus=true

时间秒杀一切 提交于 2019-12-29 03:51:10
问题 We're applying the new Android KitKat translucent theme in our apps, and we're getting a weird issue when the keyboard appears. If we don't use the new android:windowTranslucentStatus attribute, all works as usual: The screen is resized, and all remains visible. But when we're using android:windowTranslucentStatus , the screen isn't resized and our EditText becomes hidden by the keyboard. A sample of the issue: The only difference between the screens is in the attribute in the style: First

Autostart html5 video using android 4 browser

╄→尐↘猪︶ㄣ 提交于 2019-12-28 02:08:06
问题 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 chrome client in webview via android app and that client should be able to auto-start video. When click the play button video plays but not auto play. Is it restricted in android? Other thing to notice is that no call back methods are called in chromeClient even when we click the play button &