Characterizing the Exception Handling Code of Android Apps

  • Francisco Diogo Queiroz UFRN
  • Roberta Coelho UFRN

Resumo


Android apps are becoming more and morepopular. The number of such apps is astonishinglyincreasing in a daily rate, as well as the number of usersaffected by their crashes. Android apps as other Java appsmay crash due to faults on the exception handling (EH) code(e.g. uncaught exceptions). Techniques for exceptiondetection and handling are not an optional add-on but afundamental part of such apps. Yet, no study hasinvestigated the main characteristics of the EH code ofmobile apps nor the developers perspective about the goodand bad practices of EH in such context. This paper reportstwo complementary studies: one that inspected the EH codeof 15 popular Android apps (which overall comprises of 3490try-catch-finally blocks), and other study which surveyed 47Android experts to get their opinion about the good and badpractices of EH development in Android environment. Someoutcomes of the studies shows a high occurrence of exceptionswallowing and only few apps sending exception informationto a remote server – both considered by Android experts asbad practices that negatively impact the app robustness.

Palavras-chave: Androids, Humanoid robots, Java, Computer crashes, Robustness, Computer architecture, Software, Exception handling, Android development, survey, exploratory study
Publicado
19/09/2016
QUEIROZ, Francisco Diogo; COELHO, Roberta. Characterizing the Exception Handling Code of Android Apps. In: SIMPÓSIO BRASILEIRO DE COMPONENTES, ARQUITETURAS E REUTILIZAÇÃO DE SOFTWARE (SBCARS), 10. , 2016, Maringá/PR. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2016 . p. 131-140.