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.

Play Ringtones, Generate Tones, and Get Device Info In #Delphi XE8 Firemonkey On Android by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE8 Firemonkey MiniMap And Bookmark IDE Plugin
Add A MiniMap, Code Navigator, And Bookmarks To #Delphi XE8 With These IDE Plugins

Developer David Millington from Parnassus has released a couple IDE plugins forĀ  Delphi XE8 including a MiniMap, a go to...

Close