Random android.content.res.Resources$NotFoundException-ThrowExceptions

Exception or error: For some time we have been receiving weird android.content.res.Resources$NotFoundException exception from our production application (via Play store). The error commonly appears while trying to access to string resources declared in res/values. To give a concrete example, in our Application subclass, we load a string ressources in onCreate() method (so at any app …

java – ListView random IndexOutOfBoundsException on Froyo-ThrowExceptions

Exception or error: I have an app with tons of downloads and I’m receiving a lot of this error: 16783 AndroidRuntime E java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 16783 AndroidRuntime E at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) 16783 AndroidRuntime E at java.util.ArrayList.get(ArrayList.java:311) 16783 AndroidRuntime E at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:16 4) 16783 AndroidRuntime E at android.widget.ListView.dispatchDrawWithExcessScroll_Default(ListView.java:3 288) 16783 AndroidRuntime E at …

security – When Do We Need to Provide Our Own Random Initialization Vector (IV) With Android?-ThrowExceptions

Exception or error: There are many published reports that on older versions of Android, we need to provide our own SecureRandom-based initialization vector (IV), as the default ones are not random: Generating IV for AES in Java https://medium.com/@tiensinodev/basic-android-encryption-dos-and-don-ts-7bc2cd3335ff https://tozny.com/blog/encrypting-strings-in-android-lets-make-better-mistakes/ Android cryptography API not generating safe IV for AES Conversely, as of API Level 23, if …

java – OkHttp javax.net.ssl.SSLPeerUnverifiedException: Hostname domain.com not verified-ThrowExceptions

Exception or error: I’ve been trying for days to get this working. I’m trying to connect to my server over https with a self signed certificate. I don’t think there is any pages or examples that I haven’t read by now. What I have done: Created bks keystore by following this tutorial: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html It uses …