title: How to run a Google Glass GDK sample on the device?
body: <p>I start developing Google Glass app with GDK .</p>
  
  <p>I use Eclipse with Android SDK Manager to install the GDK.</p>
  
  <p>After that, I import the Google Glass project following the steps mentioned <a href="https://developers.google.com/glass/develop/gdk/quick-start" rel="nofollow noreferrer">here</a>:</p>
  
  <ol>
  <li>Click <strong>File > New Project > Android Sample Project</strong></li>
  <li>Select <strong>Glass Development Kit</strong> as the build target and click Next.</li>
  <li>Select the <strong>Timer</strong> sample and click <strong>Finish</strong>.</li>
  <li>In the Eclipse Package Explorer, right click the sample and select <strong>Run as > Android Application</strong> with Glass connected to your development system.</li>
  </ol>
  
  <p>The Google Glass (version XE12) is connected, but nothing shows up. Then, I follow another <a href="http://blog.glassdiary.com/post/67451300016/my-first-gdk-app-on-google-glass" rel="nofollow noreferrer">tutorial</a> online to launch the App manually using an <code>adb</code> command:</p>
  
  <pre><code>./adb shell am start -n com.google.android.glass.sample.timer/.MenuActivity
  </code></pre>
  
  <p>But the result is a Permission Denial:</p>
  
  <pre><code>$ ./adb shell am start -n com.google.android.glass.sample.timer/.MenuActivity
  Starting: Intent { cmp=com.google.android.glass.sample.timer/.MenuActivity }
  java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.glass.sample.timer/.MenuActivity } from null (pid=2938, uid=2000) not exported from uid 10032
      at android.os.Parcel.readException(Parcel.java:1327)
      at android.os.Parcel.readException(Parcel.java:1281)
      at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1631)
      at com.android.commands.am.Am.runStart(Am.java:441)
      at com.android.commands.am.Am.run(Am.java:108)
      at com.android.commands.am.Am.main(Am.java:81)
      at com.android.internal.os.RuntimeInit.finishInit(Native Method)
      at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
      at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>How to solve the problem ?</p>
  
  <p>On the other hand, I made an App similar to the Android example using Eclipse. After I click Run as > Android Application in Eclipse menu bar, the console said:</p>
  
  <pre><code>[2014-01-06 18:55:10 - Glass001] Android Launch!
  [2014-01-06 18:55:10 - Glass001] adb is running normally.
  [2014-01-06 18:55:10 - Glass001] No Launcher activity found!
  [2014-01-06 18:55:10 - Glass001] The launch will only sync the application package on the device!
  [2014-01-06 18:55:10 - Glass001] Performing sync
  [2014-01-06 18:55:10 - Glass001] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
  [2014-01-06 18:55:17 - Glass001] Uploading Glass001.apk onto device '015DBXXXXXX701C'
  [2014-01-06 18:55:17 - Glass001] Installing Glass001.apk...
  [2014-01-06 18:55:20 - Glass001] Success!
  [2014-01-06 18:55:20 - Glass001] /Glass001/bin/Glass001.apk installed on device
  [2014-01-06 18:55:20 - Glass001] Done!
  [2014-01-06 18:56:48 - Glass001] ------------------------------
  </code></pre>
  
  <p>Does this relate to the error message "No Launcher activity found!" ? Referring to this error, I found an <a href="https://stackoverflow.com/a/12384191/188331">answer</a> in Stack Overflow. Where should I put the lines in the following <code>AndroidManifest.xml</code>?</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.google.android.glass.sample.timer"
      android:versionCode="2"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="15"
          android:targetSdkVersion="15" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_timer"
          android:label="@string/app_name" &gt;
  
          &lt;activity
              android:name="com.google.android.glass.sample.timer.MenuActivity"
              android:label="@string/app_name"
              android:theme="@style/MenuTheme"
              android:enabled="true" &gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.google.android.glass.sample.timer.SetTimerActivity"
              android:label="@string/app_name"
              android:enabled="true" &gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name="com.google.android.glass.sample.timer.SelectValueActivity"
              android:label="@string/app_name"
              android:enabled="true" &gt;
          &lt;/activity&gt;
  
          &lt;service
              android:name="com.google.android.glass.sample.timer.TimerService"
              android:icon="@drawable/ic_timer"
              android:label="@string/app_name"
              android:enabled="true"
              android:exported="true"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.android.glass.action.VOICE_TRIGGER" /&gt;
              &lt;/intent-filter&gt;
              &lt;meta-data
                  android:name="com.google.android.glass.VoiceTrigger"
                  android:resource="@xml/voice_trigger_start" /&gt;
          &lt;/service&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Debug mode of Google Glass is ON (Yes, I can see the device in Eclipse)</p>