[android-developers] Re: Handling the R object in a library

2010-08-27 Thread DanH
I haven't used this, but it might be what you're looking for: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject On Aug 26, 5:59 pm, Bret Foreman wrote: > I moved some of my useful utility code into a library where multiple > projects can easily access it. Among those u

[android-developers] Re: Handling the R object in a library

2010-08-26 Thread Bret Foreman
So I removed the library from the main project, which caused Eclipse to build the R.java in the main project. However, the library project still has an R.java, which I'm pretty sure is wrong. Adding the library back into the main project causes the same error as reported above. How can I prevent a

[android-developers] Re: Handling the R object in a library

2010-08-26 Thread Bret Foreman
Well, I found part of the problem, though I don't know for sure how to fix it. The main project is creating R.java in the library project instead of in the main. Deleting R.java from the library project just caused the main project to recreate it. Any idea how to fix this short of creating a new pr

[android-developers] Re: Handling the R object in a library

2010-08-26 Thread Bret Foreman
I also tried passing the result of getResources().getXml() from the main package to the library utility, an object of type XmlResourceParser and I'm still getting the same error. I'm wondering if my R object has become corrupted by my earlier try at passing one of the R.xml.foo numbers. I know tha