Standard newbie problem.  When you put anything into the "res"
directory, the next (reasonably complete) rebuild causes the R.java
file to be created (or recreated) in your "gen" directory.  The R
class (and its inner classes) basically just contains named constants
that identify items in the "res" directory.  (Note that if this isn't
happening you probably have a substantial problem with your
development environment.)

You don't have to do anything special for R.java to be automatically
generated, and you definitely don't want to touch it.  There are a few
"advanced" cases where you might refer to an R class in a different
project, but that's not for beginners. And since the R class is
created in the same package as your regular Java code, you don't need
to explicitly import it.

On Oct 5, 9:51 am, adel zalok <[email protected]> wrote:
> Hello,
>
> I wanted to use the ApiDemos in the SDK samples but I have a problem
> in finding the R.java file, I don't know why is it missing ??
>
> Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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

Reply via email to