Tuesday, August 28, 2012

[android-developers] Re: Multiple Package name in a Single Applicaiton

Mark Murphy schrieb:
> On Tue, Aug 28, 2012 at 8:10 AM, karuna vikas <kvk2551990@gmail.com> wrote:
>> thanks Murphy,, I got the point what you are saying... In a Single Android
>> Package, we can use multiple java packages ... Right ?
>
> You can use 1,000 Java packages within an Android app, if the mood
> strikes you, and you like typing.
>

You can also distribute the 1000 java packages across
multiple APK. Then see to it that these APK share process
ID and user ID. Then one APK can access the other APK
withou getting file read errors.

You can then use a PathClassLoader in one of the APKs
to load the classes from the other APKs. This is
a more tight coupling than calling a service of the
other APK.

If you don't assign an intent to an APK, it will not
be listed in the application panel, but it will be
still listed in the table of your downloaded
applications.

I am currently experimenting with such a setup to
deliver a framework, where I can load plugins one
after the other (*). Works fine so far, but not sure whether
this is canonical for Android. It is simply a port
of a concept used in a Swing application.

Maybe for Android there is a different way to deliver
"libraries" to an existing APK, preferably from a store.

Comments welcome

Bye

(*) You can see a screenshot here:
https://plus.google.com/u/0/103259555581227445618/posts/Lhiqu79xutr
Jekejeke Minlog is an APK without an intent
Jekejeke Runtime is an APK with a main intent


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate