Silent mode toggle

Mats Post time 2016-10-20 22:05:07 | Show all posts  Close [Copy link]
9 2590
View: 2590|Reply: 9

Silent mode toggle

 Close [Copy link]

9

threads

345

posts

1871

credits

Diamond Member

Rank: 4

credits
1871
Post time 2016-10-6 21:23:44 | Show all posts |Read mode

app icon

app icon

Before buying the UMI Super, I was close to opt for another phone (I won't mention its name here...) - Which had a hardware button to toggle silent mode.The Super has a hardware button that can be assigned to perform any task, so I wrote a small and simple app that when launched does just that - Toggle between normal and vibrate mode. I have set the hardware button mapped to launch this app and can that way quickly toggle between vibrate and normal mode.

You can find the app in Google Play Store https://play.google.com/store/ap ... t.com.togglesilence - Of course it's free - and ad free.

1

threads

17

posts

97

credits

Senior Member

Rank: 2

credits
97
Post time 2016-10-7 17:54:38 | Show all posts
nice work, will try it immediately!

tyvm

1

threads

17

posts

97

credits

Senior Member

Rank: 2

credits
97
Post time 2016-10-7 18:08:16 | Show all posts
Works perfect as described!

Could you add an Option to turn the roast notification off?

and one Addition might be useful to be able to use it when Screen is off (and locked)

I noticed that the Screen "flashes" or "refreshes" everytime i push the button. Isn't a big deal since it is working.

7

threads

84

posts

388

credits

Platinum Member

Rank: 3Rank: 3

credits
388
Post time 2016-10-7 20:57:31 | Show all posts
mulle replied at 2016-10-7 18:08
Works perfect as described!

Could you add an Option to turn the roast notification off?

if you can get this button to operate when the screen is off i'd be very interested, i did an app myself (using tasker) for the camera shutter, could not get it to fire when phone had gone to sleep?

9

threads

345

posts

1871

credits

Diamond Member

Rank: 4

credits
1871
 Author| Post time 2016-10-10 14:20:47 | Show all posts
It'd be possible to disable the toast, but to make the button work with screen off, I think you'd have to change things in the OS (ROM) itself. The OS simply isn't listening to the button when it's in sleep/locked. I imagine it's a security issue too, as the way the button works, it would enable anyone to launch the app you've assigned to the button without unlocking the phone first.
The reason it flashes the screen, is the app that toggles sound/vibrate is an ordinary app. Even if it has no user interface as such, the launcher clears the screen when the app launches, and then redraws the "desktop" or whatever as it exits (which happens almost instantly). I'll investigate if there's another way of accomplishing this, but it was quite some time since I did any Android development - I threw this together during a lunch break just for fun.

9

threads

345

posts

1871

credits

Diamond Member

Rank: 4

credits
1871
 Author| Post time 2016-10-10 15:47:53 | Show all posts
I've fixed the flicker/refresh/flash issue, and updated the app i Play store. If/when I find an elegant way to make it possible to turn on/off the toast, I'll fix that too.

1

threads

17

posts

97

credits

Senior Member

Rank: 2

credits
97
Post time 2016-10-19 14:49:24 | Show all posts
Thanks dude, nice work!

And thanks for the Explanation, makes sense to me

1

threads

4

posts

60

credits

Senior Member

Rank: 2

credits
60
Post time 2016-10-20 04:10:59 | Show all posts
Edited by fckr159 at 2016-10-20 04:15 \n\nHi,
this app is interesting. I have a little easier solution for switching between silence and normal mode. If I long press the shortcut button, my Umi is switching between silent and normal mode without any settings. It's default feature on my phone. But it's working only with switched on screen also.At settings menu for the long press of shortcut button there is nothing you can set. Only short press.

1

threads

17

posts

97

credits

Senior Member

Rank: 2

credits
97
Post time 2016-10-20 18:15:04 | Show all posts
fckr159 replied at 2016-10-20 04:10
Edited by fckr159 at 2016-10-20 04:15 \n\nHi,
this app is interesting. I have a little easier solut ...

damn, you are right

got the phone for three months now and never tried long pressing, shame on me

1

threads

27

posts

115

credits

Senior Member

Rank: 2

credits
115
Post time 2016-10-20 22:05:07 | Show all posts
Thanks Mats
You have to log in before you can reply Login | WELCOME TO UMIDIGI COMMUNITY

Points Rules

Quick Reply Top Back to list