(1)Activity的生命周期?
(2)如何让activity变成一个窗口?
(3)后台的Activity被系统回收怎么办?
(4)intent的工作机制?
(5)Java中如何引入C语言?
(1)onCreate(),onStart(),onResume(),onPause(),onStop(),onDestroy().后面三个都有可能干掉activity.
(2)在AndroidManifest.xml中定义Activity的主题属性。android:theme="@android:style/Theme.Dialog"(Theme.Dialog窗口属性,Theme.Traslucent半透明属性)
(3)如果没有被回收,调用onResume();若已被回收,调用onCreate(),并带上参数savedInstanceState。
(4)扔出意图:
......
阅读全文