2012年7月4日
摘要: intent包含了一组信息包含以下信息Componentname 启动哪个activityAction 启动activity的动作Data 传送什么数据CategoryExtras 键值对Flags从HelloworldActivity跳转到TestActivity//初始化Intent intent=new Intent();//设置intent.setClass(HelloworldActivity.this,TestActivity.class);//跳转HelloworldActivity.this.startActivity(intent);从HelloworldActivity跳转 阅读全文
posted @ 2012-07-04 00:11 马德华 阅读(189) 评论(0) 推荐(0) 编辑
摘要: activity为和用户交互的界面 ------------------------------------------------------------------------------------------------------------------------------------ activity要素 继承Activity类 重写OnCreate方法 在AndroidManif... 阅读全文
posted @ 2012-07-04 00:08 马德华 阅读(431) 评论(0) 推荐(0) 编辑
摘要: handler线程与UI(activity)线程为同一线程 简单用法 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_... 阅读全文
posted @ 2012-07-04 00:07 马德华 阅读(206) 评论(0) 推荐(0) 编辑