Code Samples

Included with RAD Studio are a wide variety of full featured product demos highlighting user interface design, device sensors and services, cloud, enterprise mobility services, parallel programming and more.

云

Samples that show you how to leverage REST APIs using the REST component framework and utilize cloud storage, push notification and more with Backend as a Service providers such as Parse, Kinvey and App42.

Gyroscope

Location

This code snippet shows you how to use the TLocationSensor component in order to read the GPS location of the device and display it realtime on the form. The snippet also shows you how to display Google Maps in a web browser in order to accurately pinpoint the location of the device on a real map.Designed for device only

Orientation Sensor

This code snippet shows you how to use the TOrientationSensor component in order to get various compass related information such as three axis tilt, distance and heading, heading relative to magnetic north compensated and uncompensated and heading relative to true north compensated and uncompensated.Designed for device only

Device Info

Message Alerts

This application shows how to pop-up various alert messages both standard one button information box style, and multiple button input box styles that allows various confirmations.Designed for device only

Phone Dialer

Share Sheet

This snippet shows you how to use standard actions to open the Camera Application on your Android or iOS device to take a photo and display it on your FireMonkey form. Then, with another standard action, you will open the Share Sheet to share your image via email, post to Facebook and Twitter, print via AirPrint and more.Designed for device only

Interactive Gestures - Image Rotation

Sliding Tabs

This snippet shows you how to use a TabControl with TabPosition set to tpDots in order to enable scrolling of tab items on Android and iOS devices. The Application has 2 tab items each one containing a different image.Designed for device only

IBLite Database

This snippet shows you how to populate a listview from an IBLite database using LiveBindings.

To deploy this snippet you need to use the IBLite license, following the instructions that were emailed along with the RAD Studio license (or trial license). For more information on deploying the license file along with the application, you can read: Tutorial: InterBase on iOS and AndroidDesigned for device only

Horizontal Scroll

Access Camera

This snippet shows you how to use standard actions in order to open the Camera Application on your Android or iOS device, take a picture and retrieve the taken image for displaying on your FireMonkey form.Designed for device only

Camera Component

This code snippet shows you how to manipulate the Camera on your Android or iOS device. The snippet allows you to select either the front facing camera or the back facing camera. Also you can select whether to use the flash (always on or automatic) or not.Designed for device only

Camera Roll

This snippet shows you how to use standard actions in order to open the Photo Library on your Android or iOS device and retrieve an image from the library for displaying on your FireMonkey form.Designed for device only

Send or Cancel Notifications

This code snippets shows you how to use the Notification API in order to send a notification immediately or with a 10 second delay and how to cancel a scheduled notification or all notifications.Designed for device only

Web Browser

This code snippet shows you how to use a WebBrowser component on an Android or iOS device. The application consists of an edit box, a button and the web browser component. Type an address in the edit box and press the "GO" button in order to redirect the browser to your address.Designed for device only