If you're building the system image and are using Launcher2 as your
homescreen (or a version thereof) you could just add it to the
default_workspace.xml

http://android.git.kernel.org/?p=platform/packages/apps/Launcher2.git;a=blob;f=res/xml/default_workspace.xml;h=30c542a4f9dabf0160ff700f53bcba3348009902;hb=refs/heads/master

The default_workspace.xml file is read in
LauncherProvider#loadFavorites(SQLiteDatabase db) (same git), which
will show you how they do it.

On 15 Juni, 10:00, June Hello <[email protected]> wrote:
> Sorry for my mistake, I put my app in source code and make it into the
> system.img, so there is no need to install it. I think it is a system
> package, is it right?
>
>
>
>
>
>
>
> On Wed, Jun 15, 2011 at 3:30 PM, Jens <[email protected]> wrote:
> > You cannot obtain the required permissions unless your application is
> > installed as a system package.
>
> > On 14 Juni, 09:41, June_Hello <[email protected]> wrote:
> > > Hi folks,
> > > I find that when  switch on the mobile, some icon of the application
> > > (for example. Mms , Phone, Contacts) has been added on desktop by
> > > default, so my question is if I write a new  application, how can I
> > > add the icon to desktop like that (I do development on source code ,so
> > > need to install xxx.apk, just make it and release it with system
> > > image)
> > > thanks for any help
>
> > --
> > 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

-- 
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

Reply via email to