apache – Android: Making Https Request-ThrowExceptions

Exception or error: How do I avoid the “javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated” exception and the Android Apache lib gap “The constructor SSLSocketFactory(SSLContext) is undefined” in making an Https request? How to solve: This method takes an HttpClient instance and returns a ready-for-https HttpClient instance. private HttpClient sslClient(HttpClient client) { try { X509TrustManager tm = new …

javascript – Resource structure in Apache Cordova (PhoneGap) and loading the files from the filesystem-ThrowExceptions

Exception or error: We have a fairly complex JS webapp that loads different resources (HTML templates, extra JS/CSS files, JSON data, images, videos, sounds) in different ways (string, arrayBuffer, base64, binary) online in the browser (just reading no writing). Now we’d like to make changes to it to have everything work offline (resources included) on …

android – ProGuard error can't find superclass or interface org.apache.http.entity-ThrowExceptions

Exception or error: I get always with ProGuard following error: [2012-05-19 17:50:13 – xxx] Warning: there were 13 unresolved references to program class members. [2012-05-19 17:50:13 – xxx] Your input classes appear to be inconsistent. [2012-05-19 17:50:13 – xxx] You may need to recompile them and try again. [2012-05-19 17:50:13 – xxx] Alternatively, you may …

android – Apache HTTP Client Removal from API23, will that have an effect on Volley?-ThrowExceptions

Exception or error: As we have known that Apache HTTP Client removed in API 23 Apache HTTP Client Removal However, Volley library currently still uses Apache‘s library such as import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.StatusLine; import org.apache.http.conn.ConnectTimeoutException; import org.apache.http.impl.cookie.DateUtils; And I have tested 2 projects: one with compileSdkVersion 22, the other …

java – What version of Apache HTTP Client is bundled in Android 1.6?-ThrowExceptions

Exception or error: I want to have a seperate project that runs my server communication code in a normal JVM for the purposes of integration testing. This code uses these libraries which are build into the Android Framework… http://developer.android.com/reference/org/apache/http/client/package-summary.html Does anybody know what version of Apache HTTP Client this is supposed to be? I want …

java – Is there any difference between Apache's Base64.encodeBase64 and Android's Base64.encode with Base64.Default flag?-ThrowExceptions

Exception or error: Sample A (using org.apache.commons.codec.binary.Base64): Base64.encodeBase64(“foobar”.getBytes()); Sample B (using android.util.Base64): Base64.encode(“foobar”.getBytes(), Base64.DEFAULT); Do these produce the same string? How to solve: No, the difference is that with the default settings, Android’s Base64 includes line terminators. To obtain the same result as with the Apache encoding, use Base64.NO_WRAP. More exceptions or solve method

Apache Cordova splash screens not showing in Android-ThrowExceptions

Exception or error: I am running Apache Cordova 3.6.3-0.2.13. And I try to get the splash screens working. I have followed the documentation on http://cordova.apache.org/docs/en/3.6.0/config_ref_images.md.html#Icons%20and%20Splash%20Screens. And the icons are working, but no success for the splash screens. We are also using the Ionic framework (version 1.2.8) on top of Cordova. What I have done: Added …

android – Getting NoSuchFieldError INSTANCE org/apache/http/message/BasicHeaderValueParser-ThrowExceptions

Exception or error: I’m working on an app on Android. I’m using httpcore 4.3.3. I get this when I try to use ContentType.parse(string) java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/message/BasicHeaderValueParser; in class Lorg/apache/http/message/BasicHeaderValueParser; or its superclasses (declaration of ‘org.apache.http.message.BasicHeaderValueParser’ appears in /system/framework/ext.jar) I’ve done some googling and I understand why I’m getting the error, …