RAD Studio 10.4 is now available! EMB_TEXT_LEARN_MORE

Deep discounts available on EMB_TEXT_INTERBASE_2020 for OEM or VARs – EMB_TEXT_CONTACT_SALES

Looking for Discounts? Visit our EMB_TEXT_SPECIAL_OFFERS page

Renew your Update Subscription license now EMB_TEXT_READ_MORE

Android and iOS Code Samples 10.1 Berlin

EMB_TEXT_RAD_STUDIO_DELPHI_AND_C_BUILDE_2777

This page contains in-depth code samples and code snippets to help you get started building amazing apps with RAD Studio 10 Berlin.

EMB_TEXT_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.

EMB_TEXT_CLOUD

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.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_DEVICE_SENSORS_AND_SERVICES

Samples that show you how to access location data, display ads in your application, support in-app payments, connect to Bluetooth LE devices and add proximity awareness with beacons.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_EMS

Samples that show you how to build applications using Enterprise Mobility Services Middleware.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_GOOGLE_GLASS

Samples that show you how to access Google Glass sensors.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES


EMB_TEXT_MEDIA

Samples that show you how to access on-device music files for playback and image files for editing and sharing.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_PARALLEL_LIBRARY

Samples that show you how to run application tasks in parallel, taking advantage of multiple CPUs.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_PHYSICS

Samples that show you how to add physics support to your applications.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_USER_INTERFACE

Samples that show you how to add slide-in drawer support, work with list components, access custom keyboards, design setting screens, add tab slide transitions and more.

EMB_TEXT_C_SAMPLES
EMB_TEXT_OBJECT_PASCAL_SAMPLES

EMB_TEXT_CODE_SNIPPETS

Learn how to easily add functionality to your app in minutes with feature focused code snippets.

EMB_TEXT_ACCELEROMETER_2661

This snippet shows you how to use the accelerometer in order to obtain information about the acceleration, angular acceleration, motion and speed.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_GYROSCOPE_7329

This snippet shows you how to use the Gyroscope in order to rotate a 3D cube when the device is tilted.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_LOCATION_5322

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C


EMB_TEXT_DEVICE_INFO_9318

This code snippet shows you how to use obtain device information that includes OS version, OS name, and device type.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_MESSAGE_ALERTS_3778

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_NOTIFICATIONS_SET_RESET_BADGE

This code snippet shows you how to use the Notification API in order to set the badge number on the application icon to a specified value or to reset the badge number to 0.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_PHONE_DIALER_2138

This application shows how to use the PhoneDialer API in order to make a phone call and to obtain the carrier information.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C


EMB_TEXT_SHARE_SHEET_4954

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_INTERACTIVE_GESTURES_IMAGE_ROT

This set of code snippets shows you how to rotate an image on an Android or iOS device.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_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: EMB_TEXT_TUTORIAL_INTERBASE_ON_IOS_AND
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO


EMB_TEXT_SQLITE_DATABASE

This snippet shows you how to populate a list box from a SQLite database using LiveBindings.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_CUSTOM_PICKER_7428

This code snippet shows you how to use the TComboBox component in order to pick an item from it and display its Text on a label.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_HORIZONTAL_SCROLL_3747

This snippet shows you how to use the THorzScrollBox component in order to scroll through two identical pictures.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C


EMB_TEXT_CAMERA_COMPONENT_1939

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_CAMERA_ROLL_3423

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C

EMB_TEXT_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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_DATE_PICKER_1743

This code snippet shows you how to use the TCalendarEdit component in order to pick dates from it and process them to use in your own applications.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO


EMB_TEXT_INTERACTIVE_GESTURES_IMAGE_ZOO

This set of code snippets shows you how to pinch and zoom an image on an Android or iOS device.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_INTERACTIVE_GESTURES_TAP_AND_H

This set of code snippets shows you how to use tap and hold to display a message.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_AUDIO_RECORDING_AND_PLAYBACK

This code snippet shows you how to record some sound via the microphone and then playback using the device speakers or headphones.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO

EMB_TEXT_WEB_BROWSER_5548

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

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C
EMB_TEXT_WATCH_VIDEO


EMB_TEXT_PLAY_AUDIO_FILE_1242

This snippet shows you how to include an audio file for playback in your Android and iOS application.
Designed for device only

EMB_TEXT_CODE_SAMPLE_OBJECT_PASCAL
EMB_TEXT_CODE_SAMPLE_C


Ready to get started?
EMB_TEXT_LEARN_MORE_ABOUT_IOS_DEVELOPME_7449 or EMB_TEXT_ANDROID_APP_DEVELOPMENT_WITH_R and then you can EMB_TEXT_DOWNLOAD_A_FREE_RAD_STUDIO_30.