android-4.4-kitkat

Loading javascript functions to webview in Android Kitkat

☆樱花仙子☆ 提交于 2020-01-03 03:23:06
问题 I am having problems with loading javascript functions, which are in external file, into webview in Android Kitkat. My approach for earlier versions was that i implemented my own webview client and in method onPageFinisned i called mWebView.loadUrl("javascript:" + functions); later, when i wanted to call some js method, i call same code, like mWebView.loadUrl("javascript:" + someFunction); In android kitkat there is new method evaluateJavascript, which replaces my code with calling that

Statusbar Translucent with Tint on Kitkat

感情迁移 提交于 2020-01-03 02:27:17
问题 I need to set Android status bar semi-translucent with a color like tint effect on iOS 7, i've reviewed the documentation, but it only explains how to get a gradient translucent status bar. I've seen the effect on Samsung Galaxy S5 stock dialer app, so I want to perform this effect. This is the effect: For example this is an example app that show an effect similar that I want to make, but instead a gradient to transparent I want the whole status bar with solid color behind the solid semi

Android Emulator: could not get wglGetExtensionsStringARB

戏子无情 提交于 2020-01-02 07:19:10
问题 I am getting this error in the android emulator logs since I updated the SDKManager and ADT: [2014-03-12 12:30:05 - Emulator] could not get wglGetExtensionsStringARB What does it mean? And is there anything I can do about it? 回答1: I found some people suggest to ignore this error, this is a good option only when your emulator initiating but in my case I ignore this error and my emulator was being start but after that my app didn't appear in that emulator. Then I realized this non-appearance

Failure code -32 MediaPlayer (Android 4.4)

巧了我就是萌 提交于 2020-01-02 07:13:25
问题 Hello guys my app returns failure code -32 when trying to play a video in Android 4.4 (KitKat). I can't actually find any information about this errorcode perhaps any of you knows more about this issue? 11-04 13:43:08.966: E/AndroidRuntime(26482): java.lang.RuntimeException: failure code: -32 11-04 13:43:08.966: E/AndroidRuntime(26482): at android.media.MediaPlayer.invoke(MediaPlayer.java:664) 11-04 13:43:08.966: E/AndroidRuntime(26482): at android.media.MediaPlayer.getInbandTrackInfo

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate on Android 4.x and 5.x

 ̄綄美尐妖づ 提交于 2020-01-02 03:41:29
问题 I am running my app on Android 4.4.2 and it throws this error: 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at com.android.org.conscrypt.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:146) 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:93) 07-03 08:43:59.255 21643-21803/com.myapp

Android KitKat HttpURLConnection disconnect AsyncTask

↘锁芯ラ 提交于 2020-01-01 09:13:10
问题 In my application, I download a file using an HttpURLConnection in an AsyncTask. If the file takes too long to download, then I want cancel it; and I do this by closing the stream and calling disconnect() on the HttpURLConnection object. The code has worked flawlessly for years in Android. However, now that KitKat is out, issues have popped up. Specifically, the disconnect() call itself takes several seconds or more to complete. In pre-KitKat devices, it took a millisecond or less. What is

Android 4.4 Kitkat and second external storage

有些话、适合烂在心里 提交于 2020-01-01 06:45:12
问题 There has been written a lot about Kitkat external sdcard write permission but it's not clear to me how it works. Unfortunately I don't have Kitkat device with sdcard slot. Question is, can I write to secondary external storage at all? Based on the docs. Apps must not be allowed to write to secondary external storage devices, except in their package-specific directories If in understand it, If I don't have permission I can write to the app specific folder on primary external storage /sdcard

DrawerLayout not working with Android 4.4 & SurfaceView

蹲街弑〆低调 提交于 2019-12-30 10:34:50
问题 Today I had one of those "android" moments again, which left me absolutely clueless. I have an app which consists of a DrawerLayout, which includes a RelativeLayout as container for a SurfaceView (surfaceViewContainer) and a second ViewGroup (subclass of RelativeLayout) as navigation. When the app starts, in onCreate I inflate the layout and add a SurfaceView to the surfaceViewContainer. On a Samsung S2 with 4.1.2 and a S3 with 4.3 everything works fine, I can see the SurfaceView drawn and I

SSLException - Connection closed by peer on Android 4.x versions

て烟熏妆下的殇ゞ 提交于 2019-12-30 09:52:06
问题 The issue is not occurring on higher OS versions. Is there a known problem on Android 4.x versions? If yes, how can this issue be addressed? Should there be a change on the mobile app or on the backend side? 回答1: I actually don't have the full stack trace. This is what's visible to me. IOException:Connection closed by peer EXCEPTION class: class javax.net.ssl.SSLException EXCEPTION cause: null EXCEPTION message: Connection closed by peer RESPONSE: SSLException The issue was due to TLSv1 being

Android Studio can't run application on device: stuck on “Waiting for process: <project>”

牧云@^-^@ 提交于 2019-12-30 08:08:35
问题 When trying to debug my application on my Samsung Galaxy S4, I get this output: Waiting for device. Target device: samsung-samsung_sgh_i337-8c8aa2c7 Uploading file local path: C:\Users\awebberley\AndroidStudioProjects\Contacts\app\build\apk\app-debug-unaligned.apk remote path: /data/local/tmp/org.intracode.contacts Installing org.intracode.contacts DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/org.intracode.contacts" pkg:/data/local/tmp/org.intracode.contacts Success Waiting for