如题所述
1ãhandleræ¯æ¶æ¯å¤çè ï¼é常éåHandlerçhandleMessage()æ¹æ³ï¼å¨æ¹æ³ä¸å¤çæ¥æ¶å°çä¸åæ¶æ¯ï¼ä¾å¦ï¼
Handler mHandler=new Handler(){@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case 110:
progressValue += msg.arg1;
pb_horizontal.setProgress(progressValue);
Log.d("progressValue-------------->", progressValue+"");
break;
}
}
}
2ãBundleæ¯ä¸ä¸ªè½½ä½ï¼å¯ä»¥åæ¾åºæ¬æ°æ®ç±»åã对象çå
容ï¼å¥½æ¯æ¯ä¸è¾è´§è½¦ï¼å¯ä»¥è£
åç§ä¸è¥¿ï¼ç¶åè¿å°éè¦çå°æ¹ï¼ä¾å¦ï¼
mBundle.putString("name","zhaolinit");
mBundle.putInt("number",123456);
mBundle.putBoolean("flag",false);
//ç¶åï¼æ¾å°Intent对象ä¸
Intent mIntent=new Intent();
mIntent.putExtras(mBundle);
3ãå
³äºHandleråBundleçæ´å¤ä»ç»ï¼å¯ä»¥ç¾åº¦ï¼TeachCourse空é´ï¼å¸æå¯ä»¥å¸®å©å°ä½ ï¼ï¼ï¼
温馨提示:答案为网友推荐,仅供参考