Hi all, I am very much interested to know how an android application starts.After much googling I understood something but not fully. Below some of my observations:
1.When i click an application icon from launcher ,System look for activity with intent action "main" and category "Launcher" and starts that activity. *I need some more clarity regarding who launch main activity or who filtering main activity from others(I think package manager does). 2.Once Activity is launched there will be no windows associated with that application until i call setContentView(layout id). 3.When i call setContentView(layout id),Activity creates a new Window inance and this window has some default root layout to which we set our layout . *I think this window have a Surface instance and is associated with native Bitmap ?Did this surface have a Canvas wrapper over native bitmap ? 4.Once Layout is attached to Window ,This window is added to Window manager. 5.Window manager gives gives all window(having Surface) on screen to Surface Flinger. 6.SurfaceFlinger based on visibility of window set pixels in FrameBuffer and displays to screen. I am not sure whether what i said above is right or wrong.Please correct me if my understanding is wrong. Also add extra processes happening whilhe application start up. Thanks and have a Nice day :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en