How play default CLICK sound with delphi on android [duplicate]

  

This question already has an answer here:

Play a sound alert/beep on Delphi XE5/Android platform

1 answer

Playing sound in firemonkey

3 answers

uses
Androidapi.JNI.Media, Androidapi.Helpers,
Androidapi.JNIBridge, AndroidApi.Jni.JavaTypes, AndroidApi.Jni.App;

procedure Sound;
var
AudioObj: JObject;
Audio: JAudioManager;

begin
AudioObj:= TAndroidHelper.Activity.getSystemService(
TJActivity.JavaClass.AUDIO_SERVICE);
Audio := TJAudioManager.Wrap((AudioObj as ILocalObject).GetObjectID);
Audio.loadSoundEffects;
Audio.playSoundEffect(0);
//0 – http://developer.android.com/intl/ru/reference/android/view/SoundEffectConstants.html

end;

How i can play system default sound on Android?
CLICK, NAVIGATION_DOWN, NAVIGATION_LEFT, NAVIGATION_RIGHT, NAVIGATION_UP

I do not wont add my mp3 file to App.

Comments are closed.