title: Android: Unable to find explicit activity class... startActivity from a PreferenceActivity
body: <p>I'm trying to start a new Activity from a PreferenceActivity. However, it fails with "Unable to find explicit activity class. Have you declared this activity in your AndroidManifest.xml?"</p>
  
  <p>Well, yeah, I declared it:</p>
  
  <pre><code>&lt;application [......] android:debuggable="true"&gt;
      &lt;activity android:name=".AlarmSettings"
                android:label="@string/app_name"&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=".FlashLightActivity"&gt;&lt;/activity&gt;
  
      &lt;receiver
          android:name="AlarmReceiver"
          android:process=":remote" &gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>AlarmSettings is my PreferenceActivity. AlarmSettings calls FlashLightActivity this way:</p>
  
  <pre><code>Intent i = new Intent(AlarmSettings.this, FlashLightActivity.class);
  startActivity(i);
  </code></pre>
  
  <p>And this is FlashLightActivity:</p>
  
  <pre><code>public class FlashLightActivity extends Activity {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.flashlight);
     }    
  }
  </code></pre>
  
  <p>... I don't know what to do. Any ideas?</p>