title: Shortcut Key to start the android application
body: <p>I need a shortcut key that when pressed, my app itself launches. Can somebody please help me what code I should use to create such shortcut?
  My app code is:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          ContentValues values = new ContentValues();     
          values.put("address", "5554");               
          values.put("body", "hayee_wardah!");               
          getContentResolver().insert(Uri.parse("content://sms/sent"), values);
      }
  
      @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;
      }
  } 
  </code></pre>