Archive for October, 2011

An accelerating magnetic clock?

Saturday, October 29th, 2011

Sometimes you do stuff just because you can…

I spiffed up my Accelerometer component a little bit. I also wrapped up my Location based stuff into a Location component that handles both GPS coordinates, altitude and heading (true and magnetic).

What better way to test both of these components than my Clock app?

Believe it or not, the time is 11:17am in this screen shot. The 12-hour is pointing North. ;)

And I apparently leaned my phone so that the clock "fell" up into the top-right corner. ;)

Oh, and the second hand is the FireMonkey logo!

Wonder if anyone would buy this thing if I uploaded it as "Clock Pro" and put a $0.99 price tag on it. Source included of course!

CrazyClock

Writing a component for iOS

Friday, October 28th, 2011

I just published an article that discusses my implementation of the accelerometer - Writing a component for iOS using Delphi XE2 and FireMonkey.

Enjoy!

My first iOS FireMonkey app in the AppStore

Thursday, October 27th, 2011

Submitted Saturday. Accepted and available tonight!

Anders’ Analog Clock

I’ll make a video of how it’s made, and also publish the source code. Soon.

Enjoy!

First update may very well change the name to "Analog Clock for FireMonkey" just so you can find something in the appstore using "FireMonkey" as the search term. Oh, and properly working iPad support is coming as well. ;)

Please consider checking it out it and rating it! :)

All my iOS CodeRage demos posted

Wednesday, October 26th, 2011

A Baker’s Dozen in total, in no particular order:

FishFacts iOS
Opening a URL in iOS
Toggling the Status Bar in iOS
Using SQLite in iOS
Getting a Map in iOS
Local File I/O in iOS
Sending Email in iOS
Getting Directions in iOS
Dialing Phone Numbers in iOS
Using Icon Badge Numbers in iOS
Using the Accelerometer in iOS
Using the GPS and Compass in iOS
DataSnap client for iOS using InterBase

Enjoy!

Accelerometer demo source posted - iOS FireMonkey

Wednesday, October 26th, 2011

Demo project posted here.

Enjoy!

Fix to my CC download for iOS DataSnap

Friday, October 21st, 2011

Apparently the .a files I had on my machine are necessary… ;)

If you downloaded the source code from CodeCentral, head on over and download it again for a submission that includes the .a files.

Fix: Now() returns incorrect time on iOS device, due to a FPC RTL bug

Thursday, October 20th, 2011

Due to a FPC RTL bug, the Now(), Time() and possibly Date() functions return an incorrect time unless you’re actually in GMT.

A possible fix:

var
TZOffsetFromGMT : Integer;

procedure TForm1.FormCreate(Sender: TObject);
begin
TZOffsetFromGMT := NSTimeZone.localTimeZone.secondsFromGMT;
end;

use it later as follows:

var
Hour, Min, Sec, MSec : Word;
CurrTime : TDateTime;
begin
CurrTime := Now+TZOffsetFromGMT/3600.0/24.0;
DecodeTime(CurrTime,Hour,Min,Sec,MSec);

end;

Article: DataSnap connectivity for iOS

Thursday, October 20th, 2011

I have published my article on how to achieve DataSnap connectivity from an iOS application written using Delphi XE2 and FireMonkey!

DataSnap connectivity for iOS using Delphi XE2 and FireMonkey

The article contains a link for the full source in CodeCentral.

Enjoy!

More iOS DataSnap. This time connected to InterBase!

Thursday, October 13th, 2011

As you can tell, this is EMPLOYEE.GDB popping up on my iPhone!

This app will be part of the InterBase talk at CodeRage 6. Don’t miss it!

I may even have a white paper by then…
iOS FireMonkey DataSnap

Article: GPS and Compass in iOS from Delphi FireMonkey

Thursday, October 13th, 2011

Full article with source code

Enjoy!


Bad Behavior has blocked 512 access attempts in the last 7 days.

Close