【正文】
nceState)。 setContentView()。 (TAG,onCreate)。 Button btn1=(Button)()。 (new OnClickListener(){ @Override public void onClick(View arg0) { // TODO Autogenerated method stub Intent intent=new Intent(,)。 startActivity(intent)。 } })。 }}SecondActivity:package 。import 。public class SecondActivity extends Activity {}ThirdActivity:package 。import 。public class ThirdActivity extends Activity {}R程序:/* AUTOGENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */package 。public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000。 } public static final class id { public static final int button1=0x7f050000。 } public static final class layout { public static final int main=0x7f030000。 public static final int second=0x7f030001。 public static final int third=0x7f030002。 } public static final class string { public static final int app_name=0x7f040001。 public static final int hello=0x7f040000。 }}?xml version= encoding=utf8?LinearLayout xmlns:android= android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=打開第一個Activity android:id=@+id/button1 / Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=打開第二個Activity android:id=@+id/button1 / Button android:layout_width=fill_parent android:layout_height=wrap_content android:text=打開第三個Activity android:id=@+id/button1 / /LinearLayout:?xml version= encoding=utf8?LinearLayout xmlns:android= android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=第二個Activity //LinearLayout:?xml version= encoding=utf8?LinearLayout xmlns:android= android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=第二個Activity /TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=第三個Activity //LinearLayout:?xml version= encoding=utf8?resources string name=helloHello World, MainActivity!/string string name=app_nameActivity的生命周期/string/resources結(jié)果:四、小結(jié)(問題及收獲)對活動的監(jiān)視來自于技術(shù)和平臺的支持,從這個實驗中讓我感覺到智能所帶來的方便,一個個活動之間的監(jiān)視真正的實現(xiàn)了人機(jī)之間的互通和人機(jī)之間、機(jī)器與機(jī)器之間的一個“心有靈犀”。學(xué)期實驗總結(jié)(本學(xué)期做了哪些實驗?是如何解決實驗中遇到的問題的?通過這些實驗收獲到了什么?如何進(jìn)行下一步的學(xué)習(xí)?心得體會等)通過實踐練習(xí)對android組件等有了清晰地了解之后,就是更多的積累了,需要不斷地學(xué)習(xí)來完善自己所學(xué)的東西。這時候我開始閱讀公司產(chǎn)品的代碼,我很幸運(yùn)有產(chǎn)品化的代碼供我學(xué)習(xí),來學(xué)習(xí)android中的具體應(yīng)用,對照代碼和前一段自己學(xué)的東西思考,不會的部分進(jìn)行相關(guān)的查閱,然后在代碼中進(jìn)行修改查看效果,這些都可以在我心里留下很直觀的認(rèn)識。不得不說閱讀代碼是很枯燥的,但是從中確實能夠?qū)W到很多。在這個過程中,需要查閱很多資料,不管是SDK還是上網(wǎng)查找,對于代碼中的不懂的東西我基本上都進(jìn)行了查找??创a的過程我主要關(guān)注的時框架的上的一些問題對于細(xì)枝末節(jié)的東西就不會有很多的關(guān)注了。即使這樣讀起來還是很吃力的,畢竟這是我剛開始閱讀這么大量的代碼。查完資料進(jìn)行理解之后,需要自己思考這些結(jié)構(gòu)、用法到底是怎么樣的過程。這樣看完的東西才是自己的。能夠進(jìn)一步的應(yīng)用。當(dāng)然在這個過程中少不了對代碼進(jìn)行一些修改看看到底會出什么效果。這是非常有用的,對于什么樣的代碼出現(xiàn)什么問題就會有一個很直觀的認(rèn)識。這時就是自己積累的過程了,通過不斷地積累經(jīng)驗,思考問題,動手實踐。所以沒有什么結(jié)束與否,只要進(jìn)行開發(fā),就必須多查、多想、多實踐。指導(dǎo)教師評語及成績年 月 日