Those default shortcuts in Launcher come from res/xml/default_workspace.xml, and are loaded the first time Launcher is started. (You can't edit that resource on a real phone because it isn't owned by your process, and regardless is only loaded once.)
The default Launcher is displayed because it responds to the MAIN Intent action with the "android.intent.category.HOME" category. The source code for Launcher is available here: http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=tree;h=refs/heads/cupcake;hb=cupcake j On Thu, May 7, 2009 at 4:04 PM, max <[email protected]> wrote: > > Why can not add a new short cut from the source code? At the > mainscreen, I see the "Dialer" shortcut, I want to know why it is > default there, how can I do the same thing as it. > > I am now puzzling where is the first mainscreen is in the source code > (which activity?), and why it is got displayed when android started > up? > > Anybody can tell me? > > On May 8, 6:52 am, Jeff Sharkey <[email protected]> wrote: >> You can't add it automatically--users can long-press on a workspace >> and insert a shortcut to your app. >> >> j >> >> On Thu, May 7, 2009 at 3:44 PM, max <[email protected]> wrote: >> >> > Hi, ALL >> > I want to add my app into themainscreenfor user to start . How can I >> > do? >> >> > Max >> >> -- >> Jeff Sharkey >> [email protected] > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

