July 14th, 2009, 03:06 AM
|
#4 (permalink)
|
|
Junior Member
Join Date: Jul 2009
Posts: 20
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
This post says it is impossible.
Subject: [android-developers] Re: Embeded APK? Actions...
From: Mark Murphy ( mmur...@commonsware.com)
Date: Dec 22, 2008 6:05:58 am
List: com.googlegroups.android-developers
Louis wrote:
Our product need provide some SDK to 3rdparty, and we want to provide
some services or activity in Android platform, spec for services. But
seems we can't provide it through the Jar files (Please let me know if
I am wrong ),
Sure you can!
Take your compiled Java classes and package them into a JAR, along with
instructions for what entries in AndroidManifest.xml your customers will
need to add to use your services and activities.
The only thing that does not work well this way is resources -- your JAR
cannot package resources, nor can you reliably ensure that resources
will get the same resource IDs between your code and the actual Android
application. You can accept resource IDs as parameters, but you cannot
"bake in" your own resources. Or, rather, I have not figured out a trick
for doing this as yet.
I have a chapter in the upcoming _The Busy Coder's Guide to *Advanced*
Android Development_ that covers this. Fortunately, that is one of the
chapters already (partially) available, so current subscribers to the
Warescription can get access to this already.
And in these cases, is there any way to make our APK
as Embeded APK which 3rdparty can install it with their APK without
user more actions?
I do not believe this is possible.
--
Mark Murphy (a Commons Guy)
CommonsWare: Helping the Commons, One Bit at a Time
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!
|
|
|