Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stress testing an android app

I have an android app that appears to be working fine - but I wish to ensure that I have not just been getting away with problems like memory leaks, thread lockups etc. Is there some utility, or mode within eclipse, that will highlight potential problems that may occur in the future.

like image 858
Mick Avatar asked Feb 07 '12 12:02

Mick


2 Answers

  • StrictMode is a way of guarding against accidental disk or network access on the main thread.
  • Android Lint is a recent addition to the SDK tools, to catch potential bugs and usability issues.
  • FindBugs is another non-Android-specific static analysis tool.
  • Android 4.0 (ICS) devices have several development options (in the Settings menu) you can enable to catch potential problems:
    • Don't keep activities forces activities to be destroyed on exit
    • Show screen updates so you can tell if you're doing too much rendering
    • ...and more
  • Traceview can tell you what your threads are doing.
  • See What Android tools and methods work best to find memory/resource leaks? for information about tracking memory leaks.
like image 128
Graham Borland Avatar answered Nov 15 '22 01:11

Graham Borland


Have you tried static code analyzers? For example FindBugs is an excellent tool for discovering possible problems in your code.

Depending on your application you might also release Monkey on your UI with a large amount of events and analyze the memory afterwards to discover possible leaks and crashes.

like image 22
gelupa Avatar answered Nov 15 '22 00:11

gelupa