Activity总结

       Activity的创建如同在栈里操作一样,满足先进后出的原则,每次创建一个Activity,就把它置于栈顶。如果按手机的返回键,则进行出栈操作。

       例如下面有三个Activity,每次选中按钮时,便创建另外一个Acitivity并跳转到那个Activity。如下:

                                        a1

                                                                                       clip_image001[12]clip_image001[10]

                                                 a2

 

                                        a3

 

       
                                                                                                               
   
                                                                                                  clip_image001[12]clip_image001[10]
                                
                                                                                                   
                                                                       红色
posted @ 2011-09-09 10:32  图形学小菜鸟  阅读(142)  评论(0编辑  收藏  举报