title: ANDROID adding a new package
body: <p>In my project I have got some classes and some layouts. I add a new package to my project and I in new classes from this new package there is a problem: e.g. when I writing "setContentView(R.layout.author_xml);" I have got red underline and comunicate: "R cannot be resolved to a variable". In adnroid manifest when I use activity from new package I add:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.tom"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;activity
      android:name=".menu.NewGameActivity"&gt;&lt;!--I add .menu--&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Generally in classes from new package I can't see a layout. Maybe I should add something in layout, e.g:
  android:package="com.tom.menu" -> but it doesn't work.
  What can I do in this situation? Thank you in advance.</p>