What does "nothing works for me" mean? If there are error messages, post them. Also tell us whether you want to refer to something in android.R, or your own app's R class. If the latter, is your main package really "com.home.begingwithandroid"? That "g" is suspicious; is that a typo? Furthermore, tell us what specific element you're trying to refer to, and in which way you think you have have defined it. Also tell us in which package the class is that causes the problem. In short, as Paul said:
TellTheDetails
@Paul: The "R" class is an Android-specific class that gets created automatically by the compiler. So the rules of importing and using it are not quite the same as for "normal" Java classes.