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 …

dalvik – Android 4.4 KitKat random crash-ThrowExceptions

Exception or error: EDIT: Before down-voting and implying things, please understand I cannot reproduce this error. This happens constantly on certain devices which I do not have access to, but not after a firmware reset! I recently discovered random crashes in an app I am developing for a customer. The app has roughly 100.000 active …