hi android-developers,

i am trying to convert my existing (and working) app project into 2 
projects.
the first project (a library project) should act as a kind of SDK.
the second project should use the first and make the original app.

my goal is to be able to distribute the first project only as binary 
(WITHOUT source code) to other developers, so they can make their own 
apps with it.
the second project should also be distributed as example or reference 
implementation how to use the first project.

this way, i am using my own SDK to build my app again, and offer the SDK 
in binary-only-form to other developrs, so they can use it to build 
their apps.

Android library projects seem the perfect way for this.

BUT, i found (and tried) out, that it is not possible to pack the class 
files of the source code and the used resources (ids, layouts, 
images,....) and the "R" class pointing to the resources into one jar 
file (or any other archive).

here is, what i read on:
http://developer.android.com/guide/developing/projects/index.html

"You cannot export a library project to a JAR file

A library cannot be distributed as a binary file (such as a JAR file). 
This will be added in a future version of the SDK Tools."


the only way is to supply the whole source code of the library project 
and let the second project use/reference to this source library project.

but i don't want/can give away my source code.


what is the best way how i can workaround this limitation?
has anybody of you a solution/trick/workaraound for this?

thanks in advance.
-- 
Rainer Klier
Research & Development
xyzmo SIGNificant Group  | Austria | USA  | Germany
A-4052 Ansfelden, Haiderstraße 23
Tel.: +43 7229 88060-0, E-Mail: [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