I'm not sure what the options are, which is the basis of my question. I have some code that is general (geometry calculations, Android UI helpers, ... etc). I would like to have multiple applications have access to the same code. I don't need this done at runtime, but I do know that is an option. I would like to start with sharing the source and then move to sharing the compiled code (.class?). I don't know how to set up the project to do this. I guessed by creating a new Java Project and leaving off the Activity, which worked as far as the Eclipse environment was concerned (no warnings, errors, etc), but when it runs, it's ugly and unhelpful as to what's wrong. Even debugging doesn't help.
I assume there's a model here for sharing code. Source sharing, compiled code sharing, runtime sharing, ... I simply don't know what the options are for sharing. Mitch On Mar 1, 6:59 am, Dori <[email protected]> wrote: > What exactly are you trying to do here? > > Do you just want an activity to call a method from another class you > have written or do you want to be able to import a library contained > in a .jar file? > > Dori > > On Mar 1, 5:24 am, Mitch <[email protected]> wrote: > > > > > I'm using Eclipse. I created a new Android Project with the wizard > > and I can start the application in the emulator. I would like to > > create a class outside of the project (like it would be in a library) > > and call it. I created another Android Project without an Activity > > name and created a class with a "public static" method. All compiles, > > but it won't run. It just crashes without any helpful information. > > > Since there is no code inside my method, something else must be > > wrong. I assume I don't understand something about how things link in > > Java/Android (C++ programmer here). Can anyone explain or show me a > > tutorial on how to create a class in a library so I can call it from > > my project? Should I be creating a Android Project or something > > else? > > > Thanks, > > > Mitch- Hide quoted text - > > - Show quoted text - -- 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

