Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodDelphiDemoFiremonkey

Play Ringtones, Generate Tones, and Get Device Info In #Delphi XE8 Firemonkey On Android

Delphi XE8 Firemonkey Ringtones Tone Generator Device Info AndroidDeveloper Erik Salaj from Winsoft has released three examples of interfacing with the Android SDK with Delphi XE8 Firemonkey. Winsoft also has a utility called JavaImport which can create Object Pascal interface files for the Android SDK. Obviously the examples are only for Android and not IOS, OSX, or Windows as they use the JNI. The first example allows you to play ring tones on your Android device using TJRingtoneManager. It plays the current ringtone, the current notification sound, and the current alarm sound with the Androidapi.JNI.Media unit. The second example uses the TJToneGenerator object from Android to allow you create various sounds when different buttons are pressed. The example tones are TONE_PROP_BEEP, TONE_PROP_BEEP2, TONE_PROP_ACK, TONE_PROP_NACK, TONE_PROP_PROMPT, TONE_DTMF_0, TONE_DTMF_1, and TONE_DTMF_2. The last example uses TJTelephonyManager, TJBuild_VERSION, and TJBuild to give you access to a whole bunch of info about the current device. Some examples are the device OS version, device serial number, CPU type, manufacturer, device model, device ID, sim operator, voice mail number, and a whole host of other device information. These examples should also work in Appmethod.

Head over and download the source code for the Ringtone player example for Delphi XE8 Firemonkey on Android.

Head over and download the source code for the Tone Generator example for Delphi XE8 Firemonkey on Android.

Head over and download the source code for the Device Info example for Delphi XE8 Firemonkey on Android.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply