How To Minimize OutOfMemory Errors

If you are getting “java.lang.OutOfMemoryError: bitmap size exceeds VM budget” errors, you should search your code for memory leaks and fix them. If you already did that and you are still having OutOfMemoryError (OOM), then you could try the solution...

How To Detect Screen Size Bucket

If you need to detect programatically whether you are on a normal screen (phones) or on a large screen (tablets) , you may use the following code: if ((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) ==...