I have started developing on Google glass but i found something very weird. Activity ends when Google glass goes to sleep? Can anyone help me on how can i stop the glass from killing the activity.
I was having a very similar issue. I also found a related question here: https://stackoverflow.com/questions/31318952
As noted in the comments by the poster, adding the immersive property to my AndroidManifest.xml
fixed the issue and the Glass now always wakes up to my Activity.
<activity
android:name="com.my.app.ActivityName"
android:immersive="true">
</activity>