Delphi

Delphi XE5 - deploying and accessing local files on iOS and Android

Larry in Canada recently sent me an email asking a Delphi XE5 mobile multi-device question: “How do you include files and/or folders containing files with a Delphi Android application APK file?” I told him I would create a simple example and explain how to deploy a file with your application and then access it from a Delphi app for iOS and Android. To accomplish this, you create a new…
Read more
Delphi

Changing FireMonkey style at runtime

Author: Pawe Gowacki Last month Sarina DuPont blogged about loading custom FireMonkey styles on a mobile device at runtime (“How to load custom styles at runtime“). That’s a very interesting approach to compile a custom style as a resource into the mobile…
Delphi

How to load custom styles at runtime

During my session at CodeRage, I briefly talked about how to load custom styles at runtime. I wanted to elaborate on this topic and provide some detailed steps. In this example, we are creating a mobile app for iOS and Android that uses the ‘Jet’ Premium…
Delphi

Mobile app lifecycle events handling in Delphi XE5

Author: Pawe Gowacki The lifecycle of a mobile app is more complex and different from a desktop app. On a mobile device an application runs either in the foreground or in the background. When a phone calls arrive or when user opens another app, our app is going to background. If you are a programmer, you might be interested in responding to changes in the application state, for example saving…
Read more
Delphi

Playing Audio Clips on Android

I have been working with our R&D team on the samples and snippets for RAD Studio XE5. Our mobile snippets are designed to showcase key functionality with just a couple of lines of code. Today I thought I would highlight our AudioPlayBack snippet. This snippet consists of…
C++

Working with Sensors, Devices and Platform Services in your C++ applications

All of our modern PCs, Smartphones, Tablets and other devices include more than just a screen, keyboard, mouse, memory, and storage. The devices We use include sensors for location, orientation, acceleration, ambient light, etc. My Samsung Slate Series 7 is a hybrid or “2 for 1” device that is both a desktop PC and a Tablet. It includes two cameras and accelerometer. Even if they…
Read more
Delphi

Clone FireMonkey objects

Author: Vsevolod L1433 I’ve got a task of cloning FireMonkey objects. Let it be “chess”. An object is created as an aggregate in design-time. Look at the picture in the Structure pane. I have made the composite pawn model and start thinking of make 15…
News

Setting Text Parameters in FireMonkey

Author: Сергей One of small but rather useful new features of FireMonkey introduced in XE3 version is the FMX.Types.ITextSettings interface. Often we need to change some parameters of an output text for a component, which class is not known a priori. For example, a…
News

Faking a placeholder Attribute for an Editable div, and Some CSS Tricks

Author: Craig Stuntz HTML input elements have a placeholder attribute which you can use to show a bit of text to prompt the end user. Although you can make an editable div by using the contenteditable attribute, it will not support the placeholder attribute. I needed to do both, so I ended up reinventing the placeholder attribute for editable divs. Here’s how I did it. I wanted the…
Read more