• DocumentCode
    3723050
  • Title

    Refactorings for Android Asynchronous Programming

  • Author

    Yu Lin;Danny Dig

  • Author_Institution
    Comput. Sci. Dept., Univ. of Illinois at Urbana-Champaign, Urbana, IL, USA
  • fYear
    2015
  • Firstpage
    836
  • Lastpage
    841
  • Abstract
    Running compute-intensive or blocking I/O operationsin the UI event thread of smartphone apps can severelydegrade responsiveness. Despite the fact that Android provides several async constructs that developers can use, developers can still miss opportunities to encapsulate long-running operations in async constructs. On the other hand, they can use the inappropriate async constructs, which result in memory leaks, lost results, and wasted energy. Fortunately, refactoring tools can eliminate these problems by retrofitting asynchrony to sequential code and transforming async code to use the appropriate constructs. This demo presents two refactoring tools for Android apps: (i) ASYNCHRONIZER, a refactoring tool that enables developers to extract long-running operations into Android AsyncTask. (ii) ASYNCDROID, a refactoring tool which enables developers to transform existing improperly-used AsyncTask into Android IntentService.
  • Keywords
    "Androids","Humanoid robots","Graphical user interfaces","Instruction sets","Message systems","Programming","Safety"
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering (ASE), 2015 30th IEEE/ACM International Conference on
  • Type

    conf

  • DOI
    10.1109/ASE.2015.100
  • Filename
    7372076