0

I've developed an application on Android Wear. The wear app is communicating with the handheld device through the MessageApi. I only send command from the watch to the handheld device.

In order to make the full process work, my handheld device has to be connected to the WiFi, but my handheld device (Motorola Moto x 2014 5.0) is losing the Wifi connection when going in sleep mode even with my Wifi settings saying it should never sleep when it's in standby

It's more a Android OS problem than a development, but is there a workaround to make it work ?

Hrk
  • 2,725
  • 5
  • 29
  • 44
  • Can you explain why this wouldn't work for you: http://stackoverflow.com/questions/25886935/how-to-wake-up-android-wear-when-it-is-in-sleep-mode – Morrison Chang Jul 19 '15 at 02:43

1 Answers1

1

Have you considered attempting to use a wifi lock in order to ensure that the wifi radio doesn't go to sleep?

http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html

JohanShogun
  • 2,956
  • 21
  • 30