摘要:
阅读:http://developer.android.com/training/basics/network-ops/index.html首先,声明权限检测网络情况:public void myClickHandler(View view) { ... ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(... 阅读全文
摘要:
官方文档 http://developer.android.com/reference/android/os/Handler.html 有进行解释其实我本身很好奇asynctask是怎么实现的。A Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that thread's message q 阅读全文