Hi Mark, I did not read your answer, that was the point, but using directly the main project package name creates a new problem. See my other answer for the solution I finally reach.
Thank you very much, On 24/07/12 13:06, Mark Murphy wrote: > On Tue, Jul 24, 2012 at 6:53 AM, Francisco M. Marzoa Alonso > <fmmar...@gmail.com> wrote: >> I am facing problems getting the id of a resource by name when using a >> library project: >> >> int resId = context.getResources().getIdentifier("myresname", >> "drawable", "net.iberdroid.mygamecore"); >> >> It seems like this always returns 0 when using the project as a library, >> but it were working flawlessly while it was an standalone project. >> >> net.iberdroid.mygamecore is where those resources resides, and in fact >> they are there. >> >> That code is even executed within the library project package, not from >> the android project that links it. >> >> Any ideas? > Have you tried using the package name of the main project, instead of > the library? > -- 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