android-4.4-kitkat

WebView Rendering Issue in Android KitKat

倖福魔咒の 提交于 2019-11-26 12:39:01
问题 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 of the change in rendering engine (webkit to chromium) which happened in WebView in kitkat and tried the steps for migrating, which is given in Android Developers page. But it didn\'t help. In logcat I am getting an error which is thrown from the Chromium source. W/AwContents﹕ nativeOnDraw

windowSoftInputMode=“adjustResize” not working with translucent action/navbar

孤人 提交于 2019-11-26 12:15:14
问题 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 should resize itself when keyboard is shown... but here it won\'t! If I delete the lines for the transparent effect, the resize is working. So if the keyboard is visible, my ListView is under it and I can\'t access the last few items. (Only by hiding the keyboard manually) AndroidManifest.xml <?xml version=

windowSoftInputMode=“adjustResize” not working with translucent action/navbar

主宰稳场 提交于 2019-11-26 12:02:56
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 should resize itself when keyboard is shown... but here it won't! If I delete the lines for the transparent effect, the resize is working. So if the keyboard is visible, my ListView is under it and I can't access the last few items. (Only by hiding the keyboard manually) AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="XYZ"

Android pre-lollipop devices giving error “SSL handshake aborted: ssl=0x618d9c18: I/O error during system call, Connection reset by peer”

烂漫一生 提交于 2019-11-26 11:14:25
问题 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 code working fine in lollipop devices. Iam using an OkHttpClient client like the following public OkHttpClient getUnsafeOkHttpClient() { try { final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { @Override public void checkClientTrusted( java.security.cert

How to set my sms app default in Android Kitkat?

最后都变了- 提交于 2019-11-26 10:59:30
问题 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 Messaging\" app settings that user can select one app at a time for messaging. I followed the steps from this site to select option for my sms app as default app but in the settings my app never showed up in the popup of selecting default messaging app. Below is my java code I have used from the guid

In android 4.4, swiping app out of recent tasks permanently kills application with its service . Any idea why?

为君一笑 提交于 2019-11-26 10:59:17
问题 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 service but service also doesn\'t work. Ideally it shouldn\'t kill background service, and it doesn\'t in versions prior to 4.3. Any idea why is it happening in 4.4? 回答1: Got it. Its a bug in 4.4. I tried this and it worked perfectly fine(its a dirty workout though). Just override this method -:

How to record screen and take screenshots, using Android API?

有些话、适合烂在心里 提交于 2019-11-26 10:08:01
问题 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 apps came to that use this feature, allowing to record the screen, and Microsoft even made its own Google-Now-On-tap competitor app. Using ADB, you can use: adb shell screenrecord /sdcard/video.mp4 You can even do it from within Android Studio itself. The problem I can\'t find any tutorial or

How to persist permission in android API 19 (KitKat)?

我们两清 提交于 2019-11-26 09:29:09
问题 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 from the database and try to retrieve the image from that path android throws java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{42c84ec8 23911:com.gots.gb/u0a248} (pid=23911, uid=10248) requires android.permission

Receive MMS messages in Android KitKat

别来无恙 提交于 2019-11-26 08:11:22
问题 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. http://goo.gl/uQ3Nih They suggest that you handle the receive of an MMS in a service. Which all looks fine, except they neglect to mention the most undocumented piece. How to actually handle an incoming MMS. Here is the sample from the project https://gist.github.com/lawloretienne/8970938 I have tried to \"handle the MMS\" https://gist.github

Android KitKat 4.4 Hangouts cannot handle Sending SMS intent

天涯浪子 提交于 2019-11-26 08:08:44
问题 Code for sending sms that worked perfectly till Android 4.3 (Jelly Bean) stopped working since 4.4 (KitKat) I\'m just preparing the text message for the user, but he needs to choose the number to send to The code I have used is: Intent sendIntent = new Intent(Intent.ACTION_VIEW); sendIntent.setData(Uri.parse(\"sms:\")); sendIntent.putExtra(\"sms_body\", smsText); activity.startActivity(sendIntent); Since it stopped working I tried also the ACTION_SEND and ACTION_SENDTO Both didn\'t worked, I