Dear Jens, thanks a lot for your help.
However, there is something that I still can't make sense.
In the file: default_workspace.xml, appwidget and search only, no
application definition, so how is Contacts, Message or other application
icon set on desktop by default.
beside, I add code below to default_workspace.xml, and refresh the
userdate.img to make sure that new date can be added to the
database,unluckily it doesn't work.
<favorite
launcher:packageName="com.demo.filemanager"
launcher:className="com.demo.filemanager.FileBrowserActivity"
launcher:screen="3"
launcher:x="0"
launcher:y="3" />
Is there something that I have forgotten?
On Wed, Jun 15, 2011 at 4:29 PM, Jens <[email protected]> wrote:
> 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
>
--
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