Sohail Aziz

A software engineer hacking codes

AsyncTask and context leaking

Read Time 2 minutes AsyncTask is mostly used as inner class of Activity or Fragment. For example: public class SampleActivity extends Activity { private static SampleActivity instance; @Override protected

Read More »

MediaCodec: Decoding AAC android

Read Time 2 minutes Encoding/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 More »

Db4o Concurrent Access

Read Time < 1 minute Db4o 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

Read More »