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.
Asked
Active
Viewed 181 times
0

Neha Agarwal
- 622
- 7
- 24

Sheraz Ahmad Khilji
- 8,300
- 9
- 52
- 84
-
I think I'm having the same issue with a service. Have you solved this? – Clocker Jun 02 '14 at 12:46
-
@Clocker well if ur facing this problem due to idle time of google glass then u can solve it by setting the activiy immersive property to true in manifest – Sheraz Ahmad Khilji Jun 04 '14 at 06:43
1 Answers
0
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>

Community
- 1
- 1

Jeff Wilson
- 16
- 2