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?
Set phone to silent/vibrate mode?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Set phone to silent/vibrate mode?
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. :/
-
- Posts: 6
- Joined: Wed Jul 24, 2013 9:34 pm
Re: Set phone to silent/vibrate mode?
Alright great to know. Is the functionality a work in progress, or is it explicitly impossible?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. :/
Also, are there any other IDEs I should look towards? Eclipse, for example.
Re: Set phone to silent/vibrate mode?
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.
-
- Posts: 6
- Joined: Wed Jul 24, 2013 9:34 pm
Re: Set phone to silent/vibrate mode?
Super great, friend. Thanks for the assist!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.