Hello All,

I'm working on a project with multiple applications with a shared
codebase.  The activities in the applications have different
behaviors, so I can't use the android shared library facility, because
I'd like to have each application be able to extend an Activity from
the core library.  Each application has its own resources as well as
the resources in the core library.  My current solution uses custom
builders in Eclipse, and I can build the applications, but I can't
debug them.

Projects:
An android resource-only project
A java jar project with the shared code, including activities and
R.java references
The applications, which include the java jar project

Builders
Copy the resources from the Shared Resource project to a temporary
directory
Copy the resources from the application on top of them in the
temporary directory
Copy the resources from the temporary directory back to the project
Compile the application resources into R.java, then sed the package
and copy R.java to the shared library
Compile the shared library
Compile the application into class files
run DEX on the class files
package the resources
sign the .apk
zipalign the .apk
rename the .apk to what Eclipse expects.

The other problem as well as it not getting my breakpoints is that it
doesn't handle dependencies, so it has to be rebuilt from scratch each
time

If anyone has any ideas about how to do this, I'm very interested,
because this is an inelegant solution, to say the least.

Thanks in advance,
Matthew Reynolds, INRIX

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to