Hello i can’t import the R with the layouts resources from my app this is the code i followed exactly how i find it but eclipse won’t run the application
package menu.packg;
import android.app.Activity;
import android.os.Bundle;
import android.widget.*;
import menu.packg.R;
public class Menuactivity extends Activity{
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
You shouldn’t have to import your
R.javafile at all. It is automatically generated (if you have valid XML) and taken care of for you.