I just saw today application called SysCheck for Android by Christopher Moeller .
It will give you detail info about the device. For your Delphi XE you need ARM 7 CPU with NEON support.
That’s really useful, especially if you want to close deal with customer and you want to check if your app in Delphi XE will actually work at his devices.
I was already facing that with one customer of mine who has Samsung LaFleur.
Such mobile is not compatible with Delphi XE at all and I have to rewrite the app into Java.
But it would be nice if Embarcadero would supply similar app it self. It would just open the screen and tell – compatible with Delphi XE or not.
As I’m running many different Linux servers I’m always looking for new features.
Just today I found an article about SSLH. It allows you to run different services at one port, by identifying the data sent at the request.
This is a technique that I’m already using at my JAVA server where I run at one port HTTP server and my own protocols, because each of them identify it self by different but constant header.
It also looks to me as very simple way how to mask there there is actually running SSH or OpenVPN client at the server.
My customer found another but at Delphi application:
If you click at TListView on the empty are, last item get automatically selected and events as OnClick and OnItemClick are called.
Well it can be nice feature for someone, but it’s not really logical .. for example if you have open keyboard and you want to hide it, by clicking at the empty area.
There is no settings to tun this behavior off as it’s hard coded.
The problem is at FMX.ListView.pas unit at FindItemAbsoluteAt procedure, line 4060.
if ViewAt >= HeightSums[HeightSums.Count - 1] then
Exit(HeightSums.Count - 1);
Replace with this code:
if ViewAt >= HeightSums[HeightSums.Count - 1]+GetItemHeight(HeightSums.Count-1) then
And the system will start to work logically.
You can download modified unit here, just include into your project.
One of my customer reported falling of the Delphi XE5 Application at his Samsung Android device.
When he was quickly typing multiple lines after while the app crashed.
It took me while to get the problem replicated, but eventually I found the bug.
It’s at the FMX.Platform.Android unit at TTextServiceAndroid.DrawSingleLine procedure.
From some reason the FCaredPosition is out of the range of the FLines StringList.
Replace this code:
if (FLines.Count > 0) then
if (FLines.Count > 0) and (FCaretPosition.Y>=0) and (FCaretPosition.Y<Flines.Count) then
Or you can download fixed unit here and simply included it into your project.
Embarcadero recently released new version of Delphi – XE6. Well I would suggest them to focus on fixing bugs at existing XE5 for people who already purchased their product, rather then release new version ever few months.
Recently I was doing an application that needs to access contacts at the iOS and Android.
I found those two pieces of code
But you need different unit for each platform and the names of fields are also little but different.
Recently Apple released new version of the iOS for iPhone and iPad.
If you start Delphi XE5 and you will try to compile the application you will get error:
‘Unable to locate DeviceSupport directory matched with connected device info’
What you need to do is:
Step 1) to import the new iOS SDK.
At the Delphi go to Tools -> Options and Under Enviroment Options is the SDK Manager.
The new iPhoneOS 7.1 should be listed.
I’m just implementing support for the MIDI keyboard under iOS – mean you can connect MIDI keyboards (I’m using MIDITECH GARAGEKEY Mini) connected via the Apple iPad Camera Connection Kit.
The keyboard works perfect, you just plug it into the iPhone or iPad and it works. As the keyboard doesn’t have any additional led diode it has really low power consumption.
From the free software I found only GarageBand from Apple to be working with the keys.
At my application the keyboards can be easily implemented via the CoreMIDI (here is link to download my implementation for Delphi).
Today I wanted to submit my app to the Apple Store for my customer.
This is generally the procedure: http://docwiki.embarcadero.com/RADStudio/XE5/en/Deploying, but I got some problems.
It’s done via Application Loader that can be downloaded after registration at the https://itunesconnect.apple.com .
Unfortunately I got few errors after first upload:
ERROR ITMS-9000: “The bundle identifier cannot be changed from the current value, ‘PianoWizard’. If you want to change your bundle identifier, you will need to create a new application in iTunes Connect.” at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
ERROR ITMS-9000: “This bundle is invalid. The application-identifier entitlement is missing; it should contain your 10-character Apple Developer ID, followed by a dot, followed by your bundle identifier.” at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
ERROR ITMS-9000: “Invalid Launch Image – Your app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later.” at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
ERROR ITMS-9000: “This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK or Xcode.” at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
Here is how I handled them:
I was just recently handling quite simple task – to open an URL from the mobile application.
It’s simple under windows .. you will just call ShellExecute function.
But at Delphi that should unify access to all basic tasks for all different platforms is this function somehow missing… ops.
I found solution for the Android and solution for the iOS.
As I mentioned in previous posts, I’m just writing a game for an iOS under Delphi XE-5.
Well on the begging it was looking really nice and easy, but there are some catches.
First Delphi doesn’t support multi-touch. This was handled thanks to support of Iztok Kacin.
Second catch was MIDI.
I found that iOS can play MIDI by this article, but from Delphi I couldn’t call it, because “god knows why” Embarcadero created support for some of the frameworks under Delphi.
So I was digging and digging and I found out that it’s actually relatively simple to add missing frameworks to Delphi.
Embarcadero did that for some of them and Xcode gives header files to each of the framework.