Skip to content Skip to sidebar Skip to footer

"java.lang.RuntimeException: Could Not Launch Intent" For UI With Indeterminate ProgressBar

Are there any known issues with displaying indeterminate ProgressBars with the AndroidJUnitRunner?  I'm hitting this error during tests: 05-26 15:22:48.504    1003-1016/? I/Tes

Solution 1:

I don't think you can actually test progress bars to see if they finish.

We used progress bars just as a way to show how far we were in time (for example day 7 out of a 30 day cycle so our progress bar never finished). To avoid this issue we had to use a different API level for our app. We seemed to only have this problem with an emulator with an API level of 21. Once we switched our emulator to API level of 19 our tests succeeded.

Note: We also had some success with changing the progressBar with plain views for the tests, but we decided that was more hacky than we liked.


Post a Comment for ""java.lang.RuntimeException: Could Not Launch Intent" For UI With Indeterminate ProgressBar"