I need to know if there is a way to keep an android wear app always in interactive mode. (i knonw this will drain battery life)
Is the 'rotate away' gesture adressable or will the watch just go in ambient whenever the watch goes on it outer side?
I need to know if there is a way to keep an android wear app always in interactive mode. (i knonw this will drain battery life)
Is the 'rotate away' gesture adressable or will the watch just go in ambient whenever the watch goes on it outer side?
The answer depends on whether your "app" is an activity or a service.
An activity should simply specify
android:keepScreenOn="true"without the need to do anything further.If it's a service (e.g. you are making an alarm/timer watch face), I recommend starting a transparent "always-on" activity. AFAIK, currently, the system will not allow your service to keep the screen on with a full wake lock beyond the normal screen-on cycle duration. This is likely due to wake lock misuse. With an Activity, this is possible currently, and has the benefit of handling dismiss actions for you (e.g. side button press, palm, etc). I used a similar pattern in a set of "timer" watch faces.
Here's how you might achieve always-on from a service:
In a Service/Activity responsible for waking the watch:
Your
AlarmExpiredActivitylayout must specify the following property:android:keepScreenOn="true"I would recommend you also specify
android:onClick="hide"to make it easier for users to kill something that's draining their watch.