Tried that, but so far it's not working.
So far I have: 1. Create a JAR file and use it in my activity. The JAR file must be a standard Java JAR (whatever that means). I see there are options to choose in the wizard for the JRE and no idea what a good choice is. 2. Try to put the code into a particular folder and reference it in each Android Activity project. This will cause duplication of the code inside each activity? 3. Create a service with the code and ask it to do the calculations and/or UI calls. Not sure if I can call UI inside a service. I think not after some reading. I'd still like other options if anyone is reading this... On Mar 2, 7:20 am, Mark Murphy <[email protected]> wrote: > Kitzy wrote: > > One last word of advice, if you are creating a standard jar file, then > > your project (for that code) shouldn't be an Android project but a > > regular java project. > > That may be true, but it is perfectly valid to link to the appropriate > Android JAR file, to reference classes and methods available in the > Android SDK. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

