Exception or error: I am working on pushing a project into espresso testing currently. I have read a bunch of documents and follow the given practises to get started. Everything works fine, However, when it comes to Intents related test, the result is strange. Most of the time, the tests passed in my Mac but …
Tag: random
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 …
java – Creating a "favorite" feature on a list of questions that get randomized-ThrowExceptions
Exception or error: I’m having a hard time correctly implementing a ‘favorites’ feature for my app. Moving through a list of objects, the user should be able to check/uncheck something as a favorite. Once the activity moves into the onPause(); state, it should save the list of favorites (rather, the complete list of boolean markers …
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 …
Android 4.4 KitKat random crash (Native crash at /system/lib/libc.so)-ThrowExceptions
Exception or error: I built an app that plays YouTube iframe video via WebView and controls video with YouTube iframe api. (I know that YouTube SDK for Android may be more recommended for Android app development, but for now only iframe api fits our need) I found out that the app randomly crashes when running …
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 …
android – Why application is dying randomly?-ThrowExceptions
Exception or error: I am developing an music player app. All works fine except the app dies suddenly. Sometimes this happens when the app starts, and sometimes after running for long time. Sometimes all goes well without app getting died. I observed the log to get to know what is the causing the app to …
android – Checking a checkbox in listview makes other random checkboxes checked too-ThrowExceptions
Exception or error: whenever i check a checkbox in my listview , other random checkboxes get checked too . It could be due to item recycling by listview. I also tried setting android:focusable=”false” to checkbox in my layout as suggested in some places, but still the onListItemClick() is not called for a row when its …