Memory management in android

In mobiles, primary memory is a paramount resource and thus utilization of this resource should be optimum. As RAM (Random Access Memory) is a “costly” affair, it should be utilized at optimum to hold the data that is directly accessible by the processor. Researchers are working in the computer fraternity to maximize the performance of this resource. In this paper, we discuss the current challenges which the programmers faced while programming the RAM in mobile phones and propose some optimum solutions in order to solve the issues. We discussed various factors like Object Creation, Use of Primitive types, Static Constants, Hidden Cost of Abstractions, data, containers, caching policies and services to optimize the RAM performance. A comparison regarding the performance of the two different operating system mainly Android and iOS is also stated.