/Code tips

Performing background fetches on iOS

By |2017-02-16T18:02:35+10:30June 18, 2016 5:46 pm|Code tips, Patches|

This article relates to any version of Delphi (or at least it should work) that can target iOS 7 or greater. The demo project was created using Delphi 10.1 Berlin. There's been the odd post to the Embarcadero forums as well as on StackOverflow about how to implement background fetches on iOS. Partly because it's [...]

Allowing an iOS app to run in the background

By |2016-05-26T17:31:37+10:30May 26, 2016 5:24 pm|Code tips, Patches|

NOTE: This article is about allowing your iOS app to run when it goes into the background (i.e. another app becomes active) for a short period (up to 3 minutes on iOS 9, at least). It does not relate to having the UIBackgroundModes option, an example of which is here. As some of you will [...]

Debugging from Delphi in a VM using an emulator on the host

By |2017-02-16T18:02:35+10:30May 19, 2016 12:06 am|Code tips, IDE tweaks, Resources|

Note: These instructions work for me, where I am using VirtualBox on OSX, using a standard emulator from the Android SDK, and a Windows 10 VM with Delphi 10.1 Berlin installed. Way back in 2013, Jim McKeeth from Embarcadero blogged about debugging against a remote Android emulator. His method uses PuTTY and remote login via [...]

A leg up for using ALAssetsLibrary in Delphi

By |2017-02-16T18:02:35+10:30January 29, 2016 8:43 pm|Code tips, Project tweaks|

Some time back, someone asked on the Embarcadero forums about using ALAssetsLibrary from the Assets Library framework in iOS with Delphi. I was curious because I thought I may be interested in using it myself. It seemed relatively simple enough: create an Assets Library instance (TALAssetsLibrary from the iOSapi.AssetsLibrary unit), enumerate the groups, and for [...]

Adding Javascript processing capability to TWebBrowser in iOS

By |2014-10-19T14:32:06+10:30November 6, 2013 10:04 am|Code tips, Patches, Uncategorized|

UPDATE: If you're using Delphi XE7, the TWebBrowser component now includes the method EvaluateJavascript (does the same thing as what my GetJavaScript result does), and applies to both iOS and Android. In a post on the Embarcadero forums some time ago, Charles Vinal asked about whether it would be possible to have TWebBrowser implement the stringByEvaluatingJavaScriptFromString [...]

Moving controls into view when the virtual keyboard is shown

By |2017-02-16T18:02:36+10:30October 19, 2013 7:09 pm|Code tips, Uncategorized|

UPDATE: The demo project attached has been updated due to a couple of "glitches". One remaining known issue is that the "Config" page doesn't move to its original position if changing orientation when the keyboard is already showing. I'll revisit the article when I've come up with a solution. I'm sure almost everyone who develops [...]

Implementing a slide-in menu in your mobile apps

By |2019-06-04T21:35:49+10:30October 15, 2013 11:17 am|Code tips, Uncategorized|

Back in May of 2013, Malcolm Groves published this excellent article: A Facebook-style layout for your mobile app Which outlined how to go about implementing a slide-in menu like in prior incarnations of the Facebook mobile app. Facebook has since changed this layout, so it no longer applies to that app, however I still [...]

Show Buttons
Hide Buttons