Delphi

Simple Database and Data access in Delphi XE5 for iOS and Android

Author: Blaise Þ With the release of Delphi XE5 for iOS and Android developers now have several options for connecting to databases and data both on the devices themselves as well as via our DataSnap multi-tier technology; REST application services, REST, SOAP, and XML (TXMLDocument).  You can directly use SQLite, InterBase IBLite/IBToGo in your iOS and Android applications via the FireDAC…
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…
News

Printing from an Android device using FireMonkey

Author: J T403 Printing from an Android device requires a little bit more setup than in iOS where you simply connect to an AirPrint capable printer (like my Epson XP-400). However, Android printing appears to work with any Wifi printer (or PC connected printer), so its more…
Delphi

Opening a file with the default program on Windows and Mac

I’ve been using the windows API call ShellExec for years to pass in the file name of a file I want to launch programatically with the default application on Windows; but I am now creating an application for use on Windows and Mac with FireMonkey for the upcoming season of Developer Direct LIVE Mobile Summer School (starting Tuesday 16th July) and I need to implement the same functionality on…
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 more. If you’re thinking of a similar method, please, try Clone method. It will help you clone any FireMonkey object, not…
Read more
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

YAML and Remote Code Execution

Author: Craig Stuntz YAML’s security risks are in no way limited to Rails or Ruby. YAML documents should be treated as executable code and firewalled accordingly. Deserializing arbitrary types is user-controlled, arbitrary code execution. It’s Not Just Ruby 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