views:

347

answers:

2

I am working on some reusable Android code that I would like to distribute to other developers for use within their own applications. The code has some resource dependencies (layouts, xml & png drawables) that I would like to be able to include and reference within a single package (Jar file).

Is this possible, and if so what is the best method to do this?

+5  A: 
Ramps
Just to confirm that unfortunately this is indeed the easiest method for now.
Christopher
I attempted the same thing, and was really disappointed that I couldn't package everything in my jar. Is there an enhancement request on b.android.com for this? I'd like to star it up if there is but I can't seem to find anything requesting this feature on there.
mbaird
People has been struggling with that for a very long time, so I believe google knows about that problem and its scople. I don't know if there is a change request reported, but even so, it would be a huge change. So, unfortunately, I don't think that goole is going to make such enhancement.
Ramps
A: 

I also want to known what is the best solution。。。any suggestions?

jinpengzhang