Page 1 of 1

Set phone to silent/vibrate mode?

Posted: Thu Jul 25, 2013 9:18 pm
by KenjiBeast
My intention is to create an app that allows the user to set a phone to silent/vibrate/etc via time/date picker.

I.e. "I'll be in a meeting from 2PM to 4PM, Thursday afternoon. During that time, I would like my phone to automatically be set to vibrate, after which it will return to whatever state it was previously. I have meetings during this time weekly, so I would also like the same to happen every Thursday around the same time."

Is it possible to set a phone's ring settings in this way and if so, where would I look to accomplish such a thing?

Re: Set phone to silent/vibrate mode?

Posted: Thu Jul 25, 2013 9:40 pm
by SteveTX
Can't be done with LiveCode. LC only knows its own channel volumes that it creates. To control the audio settings of the android system, you need to interface to the android java API. You currently cannot do that with LiveCode to my knowledge, but you can write an extension to another app you write that can. :/

Re: Set phone to silent/vibrate mode?

Posted: Thu Jul 25, 2013 9:58 pm
by KenjiBeast
SteveTX wrote:Can't be done with LiveCode. LC only knows its own channel volumes that it creates. To control the audio settings of the android system, you need to interface to the android java API. You currently cannot do that with LiveCode to my knowledge, but you can write an extension to another app you write that can. :/
Alright great to know. Is the functionality a work in progress, or is it explicitly impossible?

Also, are there any other IDEs I should look towards? Eclipse, for example.

Re: Set phone to silent/vibrate mode?

Posted: Thu Jul 25, 2013 10:10 pm
by SteveTX
Not impossible at all, LiveCode is new to mobile so not everything needed is yet in place, and most of the LiveCode focus seems to be on iOS. I suspect we'll get access to those things in an update. For serious system-level functionality, you can make a custom external in your favorite language to do the heavy lifting.

Re: Set phone to silent/vibrate mode?

Posted: Thu Jul 25, 2013 10:22 pm
by KenjiBeast
SteveTX wrote:Not impossible at all, LiveCode is new to mobile so not everything needed is yet in place, and most of the LiveCode focus seems to be on iOS. I suspect we'll get access to those things in an update. For serious system-level functionality, you can make a custom external in your favorite language to do the heavy lifting.
Super great, friend. Thanks for the assist!