android-4.4-kitkat

WebView Rendering Issue in Android KitKat

夙愿已清 提交于 2019-11-27 03:20:40
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 failed; clearing to background color. Please suggest a workaround. In my case, in Android 4.4, I was getting a

Tests fail after Espresso 2 upgrade (failed: Instrumentation run failed due to 'java.lang.IllegalAccessError')

﹥>﹥吖頭↗ 提交于 2019-11-27 02:43:55
问题 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 failed due to 'java.lang.IllegalAccessError' 15:07:07.832 [WARN] [org.gradle.api.Project] com.android.builder.testing.ConnectedDevice > hasTests[Samsung Galaxy S3 - 4.3 - API 18 - 720x1280 - 4.3] FAILED 15:07:07.832 [WARN] [org.gradle.api.Project] No

Android 4.4 Step Detector and Counter

落花浮王杯 提交于 2019-11-27 02:42:31
问题 Is there any documentation around Android 4.4 KitKat's (well specifically Nexus 5 for now) step detector and counter APIs? I tried to search a lot but did not find anything. I am planning to try my hands on these new concepts and want to use the API but there's nothing around it on the Internet. 回答1: I found an example for you, hope it helps in someway, the sensor explanation on the API page is pretty straight forward too.. API Page: http://developer.android.com/about/versions/android-4.4

Android4.4 can not handle sms intent with “vnd.android-dir/mms-sms”

情到浓时终转凉″ 提交于 2019-11-27 01:53:27
问题 My application has a button to start default sms activity and it worked perfectly fine all android version except new one, Android 4.4(kitkat) Here is the code: public void onClick(View arg0) { Intent smsIntent = new Intent(Intent.ACTION_VIEW); smsIntent.setType("vnd.android-dir/mms-sms"); smsIntent.putExtra("address", member.getPhoneNumber().trim()); context.startActivity(smsIntent); } And I get error messages 11-08 02:08:32.815: E/AndroidRuntime(14733): android.content

Global search not working as expected in Android 4.4

北战南征 提交于 2019-11-27 01:49:07
问题 I've got an application that has two search suggestion providers that both extend SearchRecentSuggestionsProvider , and I've set it up correctly in the manifest file with the following Intent filter and meta-data: <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable_tv" /> The searcable resource includes android:includeInGlobalSearch="true" , so that should be fine. And I've

Android detect usb storage for kitkat (4.4)

◇◆丶佛笑我妖孽 提交于 2019-11-26 23:12:49
I've created a webview app which hosts a website within the app in the assets-directory. I want to update the website via an USBstick inserted in my tablets usbslot. I tried it first with the .MEDIA_MOUNTED broadcast which doesn't work for my android 4.4. Tablet. I've searched for an alternative and found the "MediaScannerConnection". There are several examples here, which didn't help me much, to solve my issue. I'm looking for an easy and clean solution and a little explanation would be nice too, to detect if an USB-Storage is connected and the chance to execute some code afterwards. And how

Receive MMS messages in Android KitKat

▼魔方 西西 提交于 2019-11-26 22:12:23
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.com/lawloretienne/8971050 I can get the extras from the intent but the only meaningful thing that I can

Android KitKat 4.4 Hangouts cannot handle Sending SMS intent

纵然是瞬间 提交于 2019-11-26 21:56:41
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 also tried the sendIntent.setType("vnd.android-dir/mms-sms"); , again nothing worked. I looked for several

Android KitKat 4.4 folder on sd card

心不动则不痛 提交于 2019-11-26 20:37:44
问题 We've just fallen foul of the new permissions that apply to writing files to sd cards (external storage) on Android 4.4 (EACCES Permission Denied) Prior to KitKat we set our writable folder like this: mfolder = Environment.getExternalStorageDirectory().getPath() + "/appfiles"; However after hours of searching I've come to the conclusion, rightly or wrongly that on 4.4 devices to enable writing of files this needs to be changed to: mfolder = Environment.getExternalStorageDirectory().getPath()

How does evaluateJavascript work?

谁都会走 提交于 2019-11-26 19:55:15
I'm trying to use the new evaluateJavascript method in Android 4.4, but all I ever get back is a null result: webView1.evaluateJavascript("return \"test\";", new ValueCallback<String>() { @Override public void onReceiveValue(String s) { Log.d("LogName", s); // Log is written, but s is always null } }); How do I return a result to this method? Update: Little bit more info: I have the INTERNET permission set I have setJavascriptEnabled(true); Tried apostrophe string: return 'test'; , Tried JS object: return { test: 'this' } console.log('test'); is being executed fine. Set targetSdkVersion to 19