문제

My current Android application defines its intent filter as:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

In order to extend the application to run on Glass, I understand that I need the following intent filter:

 <intent-filter>
     <action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
 </intent-filter>            

If I replace my existing intent-filter with the one for Glass, would my application still work for tablets and other Android devices? Or, should I leave my existing filter as is and add a new filter for Glass? Regards.

도움이 되었습니까?

해결책 2

For those interested, my testing shows that you can support Google Glass as well as other Android devices by adding both the intent filters.

다른 팁

Few existing applications (any?!) have the user interface design and presentation required to be good GlassWare. I would recommend that you create a separate application, but share the underlying code as it makes architectural sense.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top