title: Android Studio can't run application on device: stuck on "Waiting for process: <project>"
body: <p>When trying to debug my application on my Samsung Galaxy S4, I get this output:</p>
  
  <pre><code>Waiting for device.
  Target device: samsung-samsung_sgh_i337-8c8aa2c7
  Uploading file
      local path: C:\Users\awebberley\AndroidStudioProjects\Contacts\app\build\apk\app-debug-unaligned.apk
      remote path: /data/local/tmp/org.intracode.contacts
  Installing org.intracode.contacts
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/org.intracode.contacts"
  pkg:/data/local/tmp/org.intracode.contacts
  Success
  
  
  Waiting for process: org.intracode.contacts
  </code></pre>
  
  <p>It just stays on the "waiting for process" message without running the application. I'm new to android development, is there something I'm missing?</p>
  
  <p>FYI, I was able to launch the application in an emulator before, but after I tried this and went back to the emulator, the same "waiting for process" message appeared.</p>
  
  <p>Here's my manifest.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;application
      android:debuggable="true"
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="org.intracode.contacts.MainActivity"
          android:launchMode="standard"
          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;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here's the my only java file:</p>
  
  <pre><code>package org.intracode.contacts;
  
  import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.text.Editable;
  import android.text.TextWatcher;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.TabHost;
  import android.widget.Toast;
  
  
  public class MainActivity extends ActionBarActivity {
  
      EditText nameTxt, phoneTxt, emailTxt, addressTxt;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          nameTxt = (EditText) findViewById(R.id.txtName);
          phoneTxt = (EditText) findViewById(R.id.txtPhone);
          emailTxt = (EditText) findViewById(R.id.txtEmail);
          addressTxt = (EditText) findViewById(R.id.txtAddress);
          TabHost tabHost = (TabHost) findViewById(R.id.tabHost);
  
          tabHost.setup();
  
          TabHost.TabSpec tabSpec = tabHost.newTabSpec("Creator");
          tabSpec.setContent(R.id.creator);
          tabSpec.setIndicator("Creator");
          tabHost.addTab(tabSpec);
  
          tabSpec = tabHost.newTabSpec("List");
          tabSpec.setContent(R.id.tabContactList);
          tabSpec.setIndicator("List");
          tabHost.addTab(tabSpec);
  
          final Button addBtn = (Button) findViewById(R.id.btnCreate);
          addBtn.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Toast.makeText(getApplicationContext(), "Your Contact has been created!", Toast.LENGTH_SHORT).show();
              }
          });
  
          nameTxt.addTextChangedListener(new TextWatcher() {
              @Override
              public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
  
              }
  
              @Override
              public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
                  addBtn.setEnabled(!nameTxt.getText().toString().trim().isEmpty());
  
              }
  
                  @Override
                  public void afterTextChanged(Editable editable) {
  
              }
          });
      }
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
  
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
          if (id == R.id.action_settings) {
              return true;
          }
          return super.onOptionsItemSelected(item);
      }
  
  }
  </code></pre>
  
  <p>Thanks</p>