title: "R" cannot be resolved in setContentView(R.layout.Splash);
body: <p>I am using Jdeveloper 11.1.2.4.0 to create splashscreen..I have followed each steps stated in <a href="http://www.androidaspect.com/2012/12/android-splash-screen-tutorial.html" rel="nofollow">http://www.androidaspect.com/2012/12/android-splash-screen-tutorial.html</a> </p>
  
  <p>But still I am not able to fix the problem.</p>
  
  <p>Here is my splash.java (Main activity)</p>
  
  <pre><code>package mobile;
  
  import android.app.Activity;
  
  import android.content.Intent;
  
  import android.os.Bundle;
  
  import android.view.Window;
  
  
  public class Splash extends Activity {
       private long ms=0;
       private long splashTime=2000;
       private boolean splashActive = true;
       private boolean paused=false;
  
      /**
       * @param savedInstanceState
       */
  
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
  
          //Hides the titlebar
           this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
           setContentView(R.layout.Splash);
  
          Thread mythread = new Thread() {
               public void run() {
                   try {
                       while (splashActive &amp;&amp; ms &lt; splashTime) {
                           if(!paused)
                               ms=ms+100;
                           sleep(100);
                       }
                   } catch(Exception e) {}
                   finally {
                      Intent intent;
                      intent = new Intent(Splash.this, Home.class);
                      startActivity(intent);
                   }
               }
           };
           mythread.start();
       }
   }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.company.splash_screen"&gt;
    &lt;uses-sdk/&gt;
  
    &lt;application android:icon="@drawable/adfmf_icon"
      android:label="@string/app_name" android:name="oracle.adfmf.Application"&gt;
      &lt;activity android:screenOrientation="fullSensor" android:name=".Splash"      android:noHistory="true" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"
                android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation" android:windowSoftInputMode="adjustPan" &gt;
        &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
         &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
          &lt;activity
               android:name=".Home"
               android:label="@string/title_activity_home" &gt;
           &lt;/activity&gt;
  
  
      &lt;activity android:name="oracle.adfmf.AMXActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;activity android:name="oracle.adfmf.RemoteURLActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;activity android:name="oracle.adfmf.LocalHTMLActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;activity android:name="oracle.adfmf.phonegap.AdfSpringboardPhoneGapActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;activity android:name="oracle.adfmf.SettingsActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;activity android:name="oracle.adfmf.navbar.MoreTabActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt; 
      &lt;activity android:name="oracle.adfmf.BlankActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="adjustPan"&gt;&lt;/activity&gt;
      &lt;receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" &gt;
        &lt;intent-filter&gt;
          &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
          &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
          &lt;category android:name="com.company.splash_screen" /&gt;
        &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;service android:name=".GCMIntentService" /&gt;
    &lt;/application&gt;
  
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
    &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
    &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
    &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
    &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
    &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
    &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
    &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;   
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;   
    &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
    &lt;permission android:name="com.company.splash_screen.permission.C2D_MESSAGE" android:protectionLevel="signature" /&gt;
    &lt;uses-permission android:name="com.company.splash_screen.permission.C2D_MESSAGE" /&gt;
    &lt;!-- App receives GCM messages. --&gt;
    &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
    &lt;!-- GCM connects to Google Services. --&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt; 
    &lt;!-- GCM requires a Google account. --&gt;
    &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
    &lt;!-- Keeps the processor from sleeping when a message is received. --&gt;
    &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt; 
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>in res/layout/ folder ,I have splash.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:orientation="vertical" &gt;
  
      &lt;ImageView
           android:id="@+id/image"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:src="@drawable/background" /&gt;
  
      &lt;ProgressBar
           android:id="@+id/progressBar1"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_below="@id/image"
           android:layout_gravity="center_horizontal" &gt;
       &lt;/ProgressBar&gt;
  
  &lt;/LinearLayout&gt; 
  </code></pre>
  
  <p>and home.xml (second activity)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:orientation="vertical" &gt;
  
      &lt;TextView
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_gravity="center"
           android:layout_marginTop="20dip"
           android:text="HomeScreen"
           android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In both .java files (splash.java &amp; home.java) error is showing at setContentView(R.layout.Splash); and setContentView(R.layout.Home); resp...</p>