Fräntz, Make sure that you're not importing android.R into your .java file. I had the same problem once. If you import android.R, your own R will not be visible.
Akshat On Nov 16, 6:38 pm, Fräntz Miccoli <[EMAIL PROTECTED]> wrote: > I've understood something new on my problem, I can not use my assets > outside of my Activity class. Does somebody know why ? > > On 16 nov, 01:32, Fräntz Miccoli <[EMAIL PROTECTED]> wrote: > > > Eclipse tells me that there's an error but I can't see where it is ... > > > It said that in the following code the drawable ressource cannot be > > resolved. > > > v.setImageDrawable(MyApp.getInstance().getResources().getDrawable > > (R.drawable.t01)); > > > But t01.png is in the good folder and Eclipse shows it in the project > > browser. It is also referenced in the R.java file... > > > If anyone can help me. > > > Have a good day. > > > Fräntz --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---