Dec
17
2013/12/9
--------------------
一、Activity的要点
1、一个Activity就是一个类,并且这个类要继承Activity
2、需要复写Activity的onCreate方法
3、每一个Activity都需要在AndroidManifest.xml文件当中进行配置
4、为Activity添加必要的控件
二、Activity和Intent
1、Intent的基本作用:
Intent对象包含以下元素
.Component name 决定启动哪个组件(Service、Activity)名
.Action 指定另外个Activity的动作,要做什么:打电话?编辑?等
.Data
.Category
.Extras
.Flags
模拟器启动不了的解决:
[2013-12-09 17:27:31 - A_helloworld] The connection to adb is down, and a severe error has occured.
[2013-12-09 17:27:31 - A_helloworld] You must restart adb and Eclipse.
cd E:\project\Android\soft\adt-bundle-windows-x86\sdk\platform-tools\
adb start-server
结束进程:tadb.exe
--------------------
一、Activity的要点
1、一个Activity就是一个类,并且这个类要继承Activity
2、需要复写Activity的onCreate方法
3、每一个Activity都需要在AndroidManifest.xml文件当中进行配置
4、为Activity添加必要的控件
二、Activity和Intent
1、Intent的基本作用:
Intent对象包含以下元素
.Component name 决定启动哪个组件(Service、Activity)名
.Action 指定另外个Activity的动作,要做什么:打电话?编辑?等
.Data
.Category
.Extras
.Flags
模拟器启动不了的解决:
[2013-12-09 17:27:31 - A_helloworld] The connection to adb is down, and a severe error has occured.
[2013-12-09 17:27:31 - A_helloworld] You must restart adb and Eclipse.
cd E:\project\Android\soft\adt-bundle-windows-x86\sdk\platform-tools\
adb start-server
结束进程:tadb.exe
作者:@Everyday NetLog
地址:http://log.zhoz.com/read.php?754
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!