Thanks for the info.

On Nov 18, 1:43 pm, "Dianne Hackbod" <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 18, 2008 at 12:02 PM, magicpig <[EMAIL PROTECTED]> wrote:
>
> > >       I am wonder whether we can runtwoseparated apps with
> > thesamecodebase. Thesetwoapps aredifferentby a flag.
>
> > >      Here are some questions:
>
> > >      1)  Where to set the flag? Is it possible for an application read
> > > the flag if we set it in AndroidManifest.xml?
>
> The only user-defined data you can put in AndroidManifest.xml is through the
> <meta-data> tags.  This data can be associated with the entire application
> or an individual component, and retrieved with the package manager APIs.
> This is currently hard to find in the docs, but look here:
>
> http://code.google.com/android/reference/android/R.styleable.html#And...
>
For this , would you mind telling me some example about how to use it?
I have tried to find some but fail.
Thanks a again.
> >      2)  I think I should usedifferentpackage values for thetwo
> > > apps, so needtwoseparated AndroidManifest.xml, right?
>
> All you really need is a different package name in the first tag (ignoring
> content providers, discussed below).
>
> > >      3) I think the authorities of the provider should bedifferent,
> > > so, we should make themdifferentin Androidmanifest.xml, right?
>
> If you expect these two applications to be installed on the same device at
> the same time, then yes you will need to give their content providers
> different authority names.  This is the main thing that will complicate the
> code itself.
>
> --
> Dianne Hackborn
> [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to