åå°äºä¸ºå°ä¼ä¼´ä»¬è§£æçæ¶åäº (*❦Ï❦)ï¼actionæ¯æç®çå主å¨æ§å¶çå¨ä½ï¼activityå æ¬æç®ççå¨ä½åèªç¶æ´»å¨ãè¿éå°±ç»å¤§å®¶æ»ç»äºä¸ä¸ªå®ä»¬åºç¡ç¥è¯çè¡¨æ ¼ï¼å¯ä»¥å ç®åäºè§£ä¸ä¸å ï¼
äºè§£å®actionåactivityçåºç¡ç¥è¯åï¼ç°å¨å°±æ¥ççå®ä»¬çå
·ä½åºå«~(@^_^@)~
1ãå®ä¹ä¸å
Actionæææè¯çè¡ä¸ºï¼å¼ºè°å¨ä½æ§è¡çå³çåç®çæ§ï¼activityæç¹å®æ¶æå è¿è¡çæ´»å¨ï¼å æ¬è¡å¨åéè¡å¨ã
ä¾å¥ï¼
- Writing a report is an action that requires careful planning.ï¼åæ¥åæ¯ä¸ä¸ªéè¦ä»ç»è§åçå¨ä½ãï¼
- Reading, hiking, and cooking are activities that I enjoy.ï¼æå欢读书ãå¾æ¥æ è¡ååé¥çæ´»å¨ãï¼
2ãå¨ä½ç±»åä¸å
Actionæ¯æç®çå主å¨æ§å¶çå¨ä½ï¼activityå æ¬æç®ççå¨ä½åèªç¶æ´»å¨ã
ä¾å¥ï¼
- She took action to resolve the problem.ï¼å¥¹éåè¡å¨è§£å³äºé®é¢ãï¼
- Swimming, skiing, and skating are activities that people enjoy in the winter.ï¼å¨å¬å¤©ï¼äººä»¬å欢è¿è¡æ¸¸æ³³ãæ»éªåæ»å°çæ´»å¨ãï¼
3ãå¨ä½å¼ºåº¦ä¸å
Action强è°ç¬ç«è¡å¨ç强çæ§ï¼é常éè¦ä¸å®çèªæå³çåè¡å¨åï¼activity并ä¸å¼ºè°å¨ä½ç强çæ§ï¼é常æ¯ä¸ç§æ¥å¸¸æ´»å¨æ娱ä¹ã
ä¾å¥ï¼
- Starting a new business is a bold and risky action.ï¼åä¸æ¯ä¸é¡¹å¤§èèåé©çè¡å¨ãï¼
- Reading books and watching movies are activities that many people enjoy.ï¼é 读åè§ççµå½±æ¯è®¸å¤äººåç±çæ´»å¨ãï¼
4ãå¨ä½æ¶é´ä¸çå·®å¼
Actionæ¯é常æå ·ä½ççæå¨ä½ææä¸ªå ·ä½æ¶é´æ®µå çè¡ä¸ºï¼activityæ¯æä¸è¬åé¿æ¶é´æç»çè¡ä¸ºææ´»å¨ã
ä¾å¥ï¼
- Running to catch the bus is an action that requires quick thinking.ï¼å¥è·èµ¶å ¬å ±æ±½è½¦æ¯ä¸ä¸ªéè¦è¿ éååºçå¨ä½ãï¼
- Taking a long walk on a sunny day is a relaxing activity.ï¼å¨é³å æåªç天æ°éæ£æ¥æ¯ä¸ç§æ¾æ¾èº«å¿çæ´»å¨ãï¼
5ãè¯æ³ç¨æ³ä¸å
Actionéå¸¸å ·æ主å¨å½¢å¼çæä¹ï¼å¸¸ç¨ä½å¨è¯ï¼è¡¨è¾¾åºè¡å¨çææï¼activityå常ç¨ä½åè¯ï¼å¯ä»¥ç¨äºåæ°åå¤æ°ï¼å¹¶ä¸å¯ä»¥è¡¨ç¤ºå ·ä½çåæ½è±¡çæ¦å¿µã
ä¾å¥ï¼
- He takes action when he sees a problem.ï¼ä»å¨çå°é®é¢æ¶ä¼éåè¡å¨ãï¼
- The students participated in many activities during the school year.ï¼å¦ç们å¨å¦å¹´æé´åå äºè®¸å¤æ´»å¨ãï¼
activity和action都可以表示活动,区别是activity不是原子动作可以再分,action是原子动作不能再分。action可以看成是activity的子集。一个activity可以包含一个或多个action。
Action类是用户请求和业务逻辑之间的桥梁,每个Action充当客户的一项业务代理。
activity是Android组件中最基本也是最为常见用的四大组件之一。Android四大组件有Activity,Service服务,Content Provider内容提供,BroadcastReceiver广播接收器。