Fixed network/update issue with Android 3.0+

We cannot run network code in main thread. I moved code to AsyncTask.