What are the best ways to crash Android apps?

seibelj picture seibelj · Sep 19, 2011 · Viewed 11.6k times · Source

What are the best ways to cause Android apps to crash? We are trying to make our app as rock solid as possible.

For my own contribution, if you have an app that uses network services, go into your app with wifi connected and then turn off wifi in various ways. For instance, walking out of range, or backgrounding the app and manually shutting wifi off, then foregrounding the app.

Answer

Che Jami picture Che Jami · Sep 19, 2011

Start your application, carry out some actions, change the orientation multiple times, exit the application. Repeat the process again and again to discover any hidden memory leaks (use a memory profiler).

Use the monkey to find any possible ab-use cases that you have not considered (although he is not available on some Android devices).

From experience, the best way to really test your application is to find yourself a bunch of beta testers who have not been involved in the project (their actions will make you raise an eyebrow - 'You did what!?').