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

Comments

  1. A quick googling says

    view.playSoundEffect(SoundEffectConstants.CLICK);

    developer.android.com - View | Android Developers

    Is that method exposed through FMX or can it be imported explicitly?

    ReplyDelete
  2. Lars Fosdal I sow that, I make a Google research for my problem... ;)
    But, 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...

    ReplyDelete
  3. Eli M​ - Is there a way to call the above mentioned from Delphi?

    ReplyDelete

Post a Comment