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 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE8 Firemonkey Ringtones Tone Generator Device Info Android | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper 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
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply