Label

Showing posts with label memory-leak. Show all posts
Showing posts with label memory-leak. Show all posts




Why should you know these?


Everyone wants to be an expert in Android development, and to be the expert in any development language you should know what kind of errors could arise and what are the reasons of errors/exceptions to solve them quickly.Also best developer is not that who has 3 to 5 years experience, but the best is that who knows what will happen if I use my logic in this way or



1.description:




A cache that uses a bounded amount of space on a filesystem. Each cache entry has a string key and a fixed number of values. Each key must match the regex [a-z0-9_-]{1,64}. Values are byte sequences, accessible as streams or files. Each value must be between 0 and Integer.MAX_VALUE bytes in length.The cache stores its data in a directory on the filesystem. This directory

1.description:




LRUCache is a caching strategy where we use Least Recently Used (LRU) eviction policy when the cache is full and we want to add more new data to the cache. LRU cache is used in many caching applications. For example memcached uses LRU cache.


LRUCache cache was introduced in API level 12 (3.1) but is available through the Support Library back to 1.6. It is a generic class

1. description:



One of the common mistakes developers often make is that never take care of Bitmap objects stored in a data structure like List, LinkedList, HashMap.
public class BitmapStorage {
String mContent;
ArrayList mImages;

// constructor to create the objects
public BitmapStorage(String content, ArrayList images) {
mContent = content;



1.description:

An
android app has some limitations when it comes to memory availability. Unlike a
normal Java app, you do not have luxury of expanding memory your application
uses, as it will be completely dependent on the device on which the app is
running, memory available in the phone, number of applications running
simultaneously. We will not have control over these external factors so we
 
 
Copyright © 2014 All About Android Template Design By | Pathmo