How to check if Google Glass is connected to internet using GDK

后端 未结 2 844
一向
一向 2021-01-20 07:22

Is there a way to detect if Google Glass is connected to the internet at runtime? For instance, I often get the message \"Can\'t reach Google right now\" when using voice in

2条回答
  •  孤独总比滥情好
    2021-01-20 08:03

    When you have wifi and data turned off, what is the network type name that activeNetworkInfo.getTypeName() returns?

    This might be a bug — can you dump as much info as possible out of the NetworkInfo object (especially the type name, DetailedState enumeration, and so forth) and file it in our issue tracker?

提交回复
热议问题