hi mark, thank you for your fast response.
Am 26.01.2012 15:57, schrieb Mark Murphy: > It is possible to create an Android library project that does not ahh, do you mean like suggested here: http://blog.sofisoftware.com/post/2011/10/05/Android-Library-projects-and-Jars > You have to rewrite your code to avoid using R. values, as they > will be wrong. You will have to look up all resource IDs using > getResources().getIdentifier() and/or reflection. you mean i should replace for example all R.layout.identifier_1 to getResources().getIdentifier("identifier_1", "layout", "full.package.name"); ? > I have the instructions in _The Busy Coder's Guide to Advanced Android > Development_ (http://commonsware.com/AdvAndroid), though the > instructions are new enough that none of my free versions have them. is it this book you are talking about? http://www.amazon.de/Coders-Guide-Advanced-Android-Development/dp/098167805X/ref=sr_1_cc_1?s=aps&ie=UTF8&qid=1327592129&sr=1-1-catcorr is the 2nd edition offered by amazon.de new enough? > 1. Create an Android library project, with your source code and such – you mean with source code AND resources? like any usual library project. > 2. Compile the Java source (e.g., ant compile) and turn it into a JAR file would a Project/Clean... build from eclipse also produce the required jar? (menu "Project", menu-entry "Clean..." in eclipse) i tried this whith the TicTacToeLib example from http://developer.android.com/resources/samples/TicTacToeLib/index.html and it produced a file tictactoelib.jar under bin directory in the TicTacToeLib project. this contains only .class files. would that be the required jar file? > 3. Create a distribution Android library project, with the same > resources as the master library project, but no source code > 4. Put the JAR file in the distribution Android library project's libs/ > directory > > The resulting distribution Android library project will have everything a > main project will need, just without the source code." ok, understood. > Personally, I'd just wait a bit. I am hopeful that the official > support for library-projects-as-JARs will be available soonish. ok, how soon whould you expect? hours? days? weeks? months? years? i ask, because i have the order to build a SDK out of my app code.... and i can't let my boss wait too long. ;-) but as you said, i first have to create an Android library project including everything anyway. so i can start with this. or will that step not be necessary any more, when official support for library-projects-as-JARs will be available? -- 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

