Android - CLICK SOUND:
Android - CLICK SOUND:
Dear all.
I have an Android application (XE7) in which I drown by set of Buttons a custom Pin-pad.
Problem and question is: how in onClick event of button; set it to play standard system click sound?
Tomislav
Dear all.
I have an Android application (XE7) in which I drown by set of Buttons a custom Pin-pad.
Problem and question is: how in onClick event of button; set it to play standard system click sound?
Tomislav
A quick googling says
ReplyDeleteview.playSoundEffect(SoundEffectConstants.CLICK);
developer.android.com - View | Android Developers
Is that method exposed through FMX or can it be imported explicitly?
Lars Fosdal I sow that, I make a Google research for my problem... ;)
ReplyDeleteBut, how to implement this (Delphi beginner) in onClick event?
I know that there is possibility to play some sound (audio file) trough a TMediaPlayer; but I am very interested in this solution
For Button there is no event onView so real question is: how to use this in practice? And any working solution for me is ok... I still learn...
Eli M - Is there a way to call the above mentioned from Delphi?
ReplyDelete