popup notifications for google glass

↘锁芯ラ 提交于 2019-12-12 04:30:47

问题


How do i make custom popup notifications for google glass the way it is shown in the google glass commercial. I want my service to run on the background and send timely popups only when necessary.

Link for reference http://www.mobile88.com.sg/news/read.asp?file=/2012/5/11/20120511113022&phone=Google_Glass_augmented_reality__futuristic_concept

Is there a possible way to do so or should I just use only Toast notifications or invoke activities through intents.


回答1:


The "popup" design from that conceptual video was tested by the Glass team before it was released to the public and found to be overly distracting. It evolved into the concept of timeline notifications which are not as invasive, but which still act as timely alerts only when appropriate.

These timeline notifications can generally be done in one of two ways, depending on your exact use case:

  1. Your app or webapp can use the Mirror API to insert a timeline item at the appropriate time with a notification sound. Users will hear the sound and, if they are in a position to do so, can wake Glass to see the card.

  2. Your GDK app can create a LiveCard and publish it with LiveCard.PublishMode.REVEAL which will automatically display the card right after you publish it.



来源:https://stackoverflow.com/questions/24669637/popup-notifications-for-google-glass

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!