标签:
错误的做法:
1 @Override 2 public void onCreate() { 3 mContext = getApplicationContext(); 4 mHandler = new Handler(); 5 mMainThreadid = android.os.Process.myPid(); 6 super.onCreate(); 7 }
正确的做法:
1 @Override 2 public void onCreate() { 3 mContext = getApplicationContext(); 4 mHandler = new Handler(); 5 mMainThreadid = android.os.Process.myTid(); 6 super.onCreate(); 7 }
标签:
原文地址:http://www.cnblogs.com/johnsonwei/p/5658736.html