AsyncTask and context leaking
Read Time 2 minutesAsyncTask is mostly used as inner class of Activity or Fragment. For example: public class SampleActivity extends Activity { private static SampleActivity instance; @Override protected
Read Time 2 minutesAsyncTask is mostly used as inner class of Activity or Fragment. For example: public class SampleActivity extends Activity { private static SampleActivity instance; @Override protected
Read Time 2 minutesEncoding/Decoding for various audio/video formats is now possible in android since JellyBean. Sample code below shows AAC decoding using MediaCodec API provided in android JellyBean
Read Time 2 minutesAndroid developers mostly face out of memory error when loading images into imageView. Primarily this error is raised because we try to load very large
Read Time 2 minutesToday I’ll discuss how can we make three state button like repeat song button in android music app. First of all we need to define
Read Time 3 minutesSQLCipher provides encryption of SQLite database files. It encrypts database using AES-256 in CBC mode. SQLCipher supports many platform including android. Here is a basic
Read Time 2 minutesA custom content provider was discussed and implemented here earlier. Today I’ll discuss how a custom content provider can be used by other applications and
Read Time < 1 minuteA simple hashMap is used to keep key,value pairs. It is useful in situation where we need to lookup values by keys. e.g
Read Time 2 minutesStates have been making money for decades on the name of “Security”. After the revolution of mobile phones many companies are doing the same in
Read Time < 1 minuteDb4o has access limitations, which means you cannot use the ObjectContainer to query/store objects in different process than the one it was opened in. For