Google Glass Sample APKs

前端 未结 5 1572
清歌不尽
清歌不尽 2020-12-16 04:42

I can get the sample APK CompassActivity app to run on Glass but no luck with LevelActivity or StopWatchActivity? I am using Eclipse. Log below. Any suggestions?

         


        
5条回答
  •  猫巷女王i
    2020-12-16 05:16

    Go to Run > Run Configurations. Then, under Launch Action, change it from Launch Default Activity to Launch: and select the activity listed in the dropdown (e.g.com.google.glass.samples.stopwatch.StopWatchActivity). Hit Apply and try running the APK again.

    The reason you have to do this is because the main activity for the sample code does not have in its . Not having a launcher is intentional: there was a pull request on one of the APK GitHub samples in the past and the response was:

    Thank you for the pull request; however, Glassware will not be launched in this fashion.

提交回复
热议问题