Mitch wrote: > 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...
To be honest, I think the best option is: 4. Spend some time learning Java outside of Android first. You seem to be fighting Java and Eclipse as much as, if not more so, than Android. Android is just strange enough that newcomers to Java often run into problems. Learn how to create standard Java console apps and JARs using Eclipse (or dump Eclipse and use other tools). Then, head back into Android to see how to utilize those techniques there. This is not particular to you -- I make this same recommendation to anyone new to Java. IIRC, you said your background was C++, not Java, which is why I make the recommendation here. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -- 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

