Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I want a sound to be played when the user presses the power button, Since I am customizing Android for Visually Challenged people this feature might let them know if the tablet has actually powered on or not.

This feature is by default switched off in my firmware. And also I think that since this sound comes just when the device is switched on, that is, before the Android Boots, the power on sound should be a function of underlying Linux kernel.

Any clue how to go about it and turn it on. Thanks in advance.

share|improve this question
    
As you describe it as "underlying kernel functionality", it is rather a development question (and thus would be off topic here). Initially you however describe you want the sound being played whenever the power button is pressed; things like that are usually doable using Tasker. However, when pressing the power button usually the screen reacts (switching either on or off); if a user cannot see that, I'm a bit at a loss regarding how (s)he shall use the device at all? –  Izzy May 8 '13 at 11:23
    
@Izzy: I'm a bit at a loss regarding how (s)he shall use the device at all? That is handled by some customized TTS and gestures enabled launcher. Anyways I have no clue about the Tasker..let me look into it. –  Harsh Vardhan May 8 '13 at 12:22
    
Two links for you: Tasker (Playstore) and my personal Tasker ressources listing. The latter is mostly German, but you'll figure the links and headlines (plenty of English stuff in there as well). And right, there was "haptic feedback" and TTS. Just hard to imagine if one's not affected... I could write up an answer with some useful Tasker examples (TTS, haptics, voice-control) if that would help you, just let me know. –  Izzy May 8 '13 at 12:26
    
@Izzy: I couldn't relate to what link I should look into even after translating the page into English. Anyways I don't want to install some app (and that too paid..:P); I want to know some code level details as to where I can turn some boolean from false to true to play the sound on power button press or just rectify the path to the power_on.ogg. or something along those lines. –  Harsh Vardhan May 9 '13 at 10:40
    
First, there's a free 7-day trial on the Tasker homepage. Second: for "code level details", this is the wrong place -- for that you'd rather check with our brothers and sisters at Stack Overflow. However, my offer stands if you count it as a possible solution: I can compile an answer with useful automation for your case, such as specific feedback, voice control, and the like. –  Izzy May 9 '13 at 10:49
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.