android-4.4-kitkat

Android Webview set proxy programmatically Kitkat

大城市里の小女人 提交于 2019-11-26 19:47:04
问题 How can we set proxy in Android webview programmatically on latest Kitkat release? This SO link WebView android proxy talks about version upto SDK version 18. But those solution no more works with Kitkat as underlying webkit implementation is changed and it uses chromium now. 回答1: Here is my solution: public static void setKitKatWebViewProxy(Context appContext, String host, int port) { System.setProperty("http.proxyHost", host); System.setProperty("http.proxyPort", port + ""); System

Permanently hide Android Status Bar

允我心安 提交于 2019-11-26 18:12:23
I'm trying to hide the system Status Bar on an Android 4.4 device. This is for a kiosk-mode where my app will be the only app ever run on the device. The target device for now is a 2013 Nexus 7. The device is rooted, and I've been able to completely remove the bottom Navigation Bar with some info from this post . For the top Status Bar, everything I have tried only hides the bar temporarily. If my users motion down at the top of the screen, the status bar reappears. I don't want to allow them to see the time, get to settings or even see notifications. Posts I've found and already tried: Hide

Impossible to rotate the emulator with android 4.4 [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-11-26 17:35:53
问题 This question already has an answer here: Android emulator not rotating to landscape 11 answers I've updated my sdk to the latest version (android 4.4) and I started the emulator, but now it seems not possible to rotate the screen with CTRL+F11, the screen change but all the applications don't change. I don't know if it's a related issue but I can see that even if I created a new emulator with menù hw button, now all the applications have the overflow button. 回答1: These appear to be bugs in

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

南笙酒味 提交于 2019-11-26 17:27:18
问题 My Android application (using native library) print this warning on Android 4.4 : linker mylib.so has text relocations. This is wasting memory and is a security risk. Please fix. Have you got an idea of what it is and how to fix it ? Thanks, 回答1: This would appear to be a result of two ndk-gcc bugs mentioned at https://code.google.com/p/android/issues/detail?id=23203 and stated there to have been fixed as of ndk-r8c. It would appear that the check for libraries with the issue has been added

Sms doesn't save on Kitkat 4.4 <Already set as default messaging app>

风流意气都作罢 提交于 2019-11-26 17:21:55
问题 My Sms app does not save the sms to the device even though I already set it as the default messaging. I need to support android pre-kitkat so I did a bit researching and had 2 BroadcastReceiver that have the same content but different name. The onReceive() method is working fine, but as soon as I quit the app and enter it the sms disappears. I checked in the stock messaging but there's no sms either. I cant figure out what the issue is My Androidmanifest: <?xml version="1.0" encoding="utf-8"?

How to delete particular inbox message in Android version 5.0 lollipop or in Kitkat?

﹥>﹥吖頭↗ 提交于 2019-11-26 17:18:47
问题 I am making to delete particular sms of phone number task. when I am testing in motog or Android version 5.0's mobile. I can't delete particular number's sms. My code snippet is below. public void deleteSMS(Context context,String number) { try { Log.d("","Deleting SMS from inbox"); Uri uriSms = Uri.parse("content://sms/inbox"); Cursor c = context.getContentResolver().query(uriSms, new String[] { "_id", "thread_id", "address", "person", "date", "body" }, "address = '"+number+"'", null, null);

Send SMS message using non default SMS app on Android 4.4

こ雲淡風輕ζ 提交于 2019-11-26 17:01:59
问题 Can I send SMS using no default SMS app on Android 4.4 Kitkat ? It means, Can I send SMS without ability to write to SMS Provider? I confused about that on Android 4.4 Kitkat. I wonder I can just send SMS using non default SMS app or not. 回答1: You can send SMS even if your app isn't the default SMS app. However, you won't be able to use the SMS provider. That's the whole point of the new version - to make it clear to the user which app is allowed to use special SMS operations and have only

Host-based Card Emulation with Fixed Card ID

三世轮回 提交于 2019-11-26 15:23:25
Android 4.4 introduced Host-based Card Emulation (HCE). As you know, all NFC cards come with a fixed card ID ( NfcAdapter.EXTRA_ID ). My office door access usually detects the NFC card ID for the authorization. After flashing my phone to KitKat, I tried to scan my phone with the access reader. But whenever the screen turns off and on again, I get a different card ID. I did try keeping the phone screen on, and registering the emulated card ID to the door access system. It managed to grant the access to open the door. But this won't work after the screen turns off and on again. Ever since KitKat

Why is FusedLocationApi.getLastLocation null

强颜欢笑 提交于 2019-11-26 13:45:50
问题 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

How to make the navigation bar transparent

依然范特西╮ 提交于 2019-11-26 13:06:37
问题 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. 回答1: 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