Set phone to silent/vibrate mode?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
KenjiBeast
Posts: 6
Joined: Wed Jul 24, 2013 9:34 pm

Set phone to silent/vibrate mode?

Post by KenjiBeast » Thu Jul 25, 2013 9:18 pm

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?

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Set phone to silent/vibrate mode?

Post by SteveTX » Thu Jul 25, 2013 9:40 pm

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. :/

KenjiBeast
Posts: 6
Joined: Wed Jul 24, 2013 9:34 pm

Re: Set phone to silent/vibrate mode?

Post by KenjiBeast » Thu Jul 25, 2013 9:58 pm

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.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: Set phone to silent/vibrate mode?

Post by SteveTX » Thu Jul 25, 2013 10:10 pm

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.

KenjiBeast
Posts: 6
Joined: Wed Jul 24, 2013 9:34 pm

Re: Set phone to silent/vibrate mode?

Post by KenjiBeast » Thu Jul 25, 2013 10:22 pm

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!

Post Reply