title: Android: intent start activity error
body: <p>I am developing webrtc application and i am getting this error dont know why.</p>
  
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.shoaib.webrtc, PID: 20122 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.shoaib.webrtc/com.example.shoaib.w‌​ebrtc.MainActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.shoaib.webrtc/com.example.shoaib.webrtc.LoginAc‌​tivity}; have you declared this activity in your AndroidManifest.xml? 
  at com.example.shoaib.webrtc.MainActivity.onCreate(MainActivity‌​.java:53)
  </code></pre>
  
  <p>This is happening when I try to start a new Activity via <code>startActivity(intent)</code></p>
  
  <pre><code>   this.mSharedPreferences = getSharedPreferences(Constants.SHARED_PREFS, 
      MODE_PRIVATE);
      if (!this.mSharedPreferences.contains(Constants.USER_NAME)){
          Intent intent = new Intent(this, LoginActivity.class);
          startActivity(intent); //here i am getting error
          finish();
          return;
      }
  </code></pre>