Refactorings for Android Asynchronous Programming
Authors:
- Yu LinYLYu Lin
- Danny DigDDDanny Dig
- 1 November 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 836-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
This publication has 24 references indexed in Scilit:
- Race detection for Android applicationsACM SIGPLAN Notices, 2014
- Systematic testing for resource leaks in Android applications2013
- Practical static race detection for Java parallel loops2013
- Testing for poor responsiveness in android applications2013
- Modular performance modelling for mobile applications2011
- Refactoring Java programs for flexible locking2011
- Correct Refactoring of Concurrent Java Code2010
- Performance Modeling and Analysis of Context-Aware Mobile Software Systems2010
- Inferring Method Effect Summaries for Nested Heap Regions2009
- Refactoring for reentrancy2009