BT schrieb:
Can I create multiple .apk's that install ADDITIVELY to the same /data/
apps/MyApp location?

In my particular case I have add-on modules that are built as C++ NDK
share objects:  Feature1.so, Feature2.so, Feature3.so, etc.  I don't
know what these will be ahead of time and the user must be able to
selectively install only those features they want.

I'm pretty sure iOS does this with in-app purchases, but not sure how
to do it on Android?

Thanks,
BT


Theoretically:

android:sharedUserId
The name of a Linux user ID that will be shared with other applications. By default, Android assigns each application its own unique user ID. However, if this attribute is set to the same value for two or more applications, they will all share the same ID — provided that they are also signed by the same certificate. Application with the same user ID can access each other's data and, if desired, run in the same process.

http://developer.android.com/guide/topics/manifest/manifest-element.html#uid

android:process
The name of a process where all components of the application should run. Each component can override this default by setting its own process attribute.

By default, Android creates a process for an application when the first of its components needs to run. All components then run in that process. The name of the default process matches the package name set by the <manifest> element.

By setting this attribute to a process name that's shared with another application, you can arrange for components of both applications to run in the same process — but only if the two applications also share a user ID and be signed with the same certificate.

If the name assigned to this attribute begins with a colon (':'), a new process, private to the application, is created when it's needed. If the process name begins with a lowercase character, a global process of that name is created. A global process can be shared with other applications, reducing resource usage.

http://developer.android.com/guide/topics/manifest/application-element.html#proc

I didn't try (yet) ...

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