Font Size: a A A

The Research Of The Memory Management Optimization Method For Android Application Development

Posted on:2015-06-05Degree:MasterType:Thesis
Country:ChinaCandidate:Y L SunFull Text:PDF
GTID:2298330452950754Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid growth of application data in Google Play, more and moreapplications can be selected by the Android user, and their application requirementsare getting higher and higher, not only need to meet the basic functions, but alsoshould be beautiful, smooth, stable and etc.This thesis describes RUI mobile phone launcher of Android application whichneeds to use lots of pictures. According to its characteristics and the OOM problemsappeared in development process, finally provide a solution, both to ensure theappearance of the application, process stability and smooth, but also to the extensiveuse of pictures without a memory overflow exception. This article completed thefollowing tasks:1) Analyze the causes of OOM problems, and provide different solutionsaccording to different situations.2) Analyze the factors affecting the cache size, how to rationally set the cachesize based on these factors.3) Load images from the installed application, local res directory, network,Sqlite database, meanwhile do scaling and circular keratosis imageprocessing.4) To implement the asynchronous refresh view task, namely get picturesresources from the non main thread, to refresh the view in the main thread.5) To implement LRU cache replacement strategy, improve on this basis, andachieve the dual cache replacement strategy, compare the effect by usingdifferent strategies on application loading efficiency.This thesis solved the OOM problem by using caching strategy, completed thecustom asynchronous refresh view task, and ensured the stable and smooth ofapplication. The final test results show that the average loading time is shortened to1/5when use the caching strategy, which improves the loading efficiency ofapplications.
Keywords/Search Tags:OOM, Android, Asynchronous Task, Caching Strategy
PDF Full Text Request
Related items