• DocumentCode
    3722986
  • Title

    Study and Refactoring of Android Asynchronous Programming (T)

  • Author

    Yu Lin;Semih Okur;Danny Dig

  • Author_Institution
    Comput. Sci. Dept., Univ. of Illinois at Urbana-Champaign, Urbana, IL, USA
  • fYear
    2015
  • Firstpage
    224
  • Lastpage
    235
  • Abstract
    To avoid unresponsiveness, a core part of mobile development is asynchronous programming. Android providesseveral async constructs that developers can use. However, developers can still use the inappropriate async constructs, which result in memory leaks, lost results, and wasted energy. Fortunately, refactoring tools can eliminate these problems by transforming async code to use the appropriate constructs. In this paper we conducted a formative study on a corpusof 611 widely-used Android apps to map the asynchronouslandscape of Android apps, understand how developers retrofit asynchrony, and learn about barriers encountered by developers. Based on this study, we designed, implemented, and evaluated ASYNCDROID, a refactoring tool which enables Android developers to transform existing improperly-used async constructs into correct constructs. Our empirical evaluation shows that ASYNCDROID is applicable, accurate, and saves developers effort. We submitted 45 refactoring patches, and developers consider that the refactorings are useful.
  • Keywords
    "Androids","Humanoid robots","Graphical user interfaces","Receivers","Programming","Registers","Transforms"
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering (ASE), 2015 30th IEEE/ACM International Conference on
  • Type

    conf

  • DOI
    10.1109/ASE.2015.50
  • Filename
    7372011