Archive for the ‘Delphi XE2’ Category

Come see us in person! Denver, Seattle, Salt Lake City, Washington DC and Boston!

Friday, June 7th, 2013

Upcoming cities:

David I will be in Denver and Seattle. I will be in Salt Lake City and Boston. Al Mannarino will be in Washington, DC.

See ya!

CodeRage Mobile June 18-19, 2013

Thursday, June 6th, 2013

Yes, you read that right! In 12 days! It’s gonna ROCK! :)

CodeRage Mobile June 18-19

Press Release

Schedule

REGISTER NOW!

Enjoy!

Ven a verme en Ciudad de México y Guadalajara

Wednesday, May 15th, 2013

¡Hola!

Regístrate ya para RAD Studio XE4 en Ciudad de México (21 de Mayo) y/o
RAD Studio XE4 en Guadalajara (22 de Mayo) y ven a verme en persona.

¡Estoy impaciente por verlos!

:)

Handling iOS application events

Wednesday, May 1st, 2013

One thing that I’ve wanted to try for quite a while is doing something when an app gets put in the background (user hits the home button for example). An example of this is a game that my kids play - when they leave the game, the character yells out something like "Don’t leave!", "Come back!", "Hope you enjoy your day without me!" and other random fun stuff.

Sometimes it also schedules a notification to fire at a later date. Let’s say the kids forget to play the game for a few days… All of a sudden out of nowhere the iPad will scream at you "Come back and play NOW! I’m bored!"

How is this done? Let’s not waste anymore time… Here is the complete form source code for the simplest case - scheduling a notification upon entering the background.

unit Unit1;

interface

uses
  System.SysUtils, System.Classes, FMX.Forms, FMX.Platform;

type

  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    function AppEvent(AAppEvent: TApplicationEvent; AContext: TObject) : Boolean;
  end;

var
  Form1: TForm1;

implementation

{$R *.fmx}

uses
  FMX.Notification;

procedure SendNotification;
var
  NotificationService: IFMXNotificationCenter;
  Notification: TNotification;
begin
  if TPlatformServices.Current.SupportsPlatformService(IFMXNotificationCenter) then
    NotificationService := TPlatformServices.Current.GetPlatformService(IFMXNotificationCenter) as IFMXNotificationCenter;

  if Assigned(NotificationService) then begin
    Notification := TNotification.Create;
    try
      Notification.Name := 'MyLocalNotification';
      Notification.AlertBody := 'Hello from the Delphi XE4 iOS app that you used 5 seconds ago!';
      Notification.FireDate := Now + EncodeTime(0,0,5,0);
      NotificationService.ScheduleNotification(Notification);
    finally
      Notification.Free;
    end;
  end
end;

function TForm1.AppEvent(AAppEvent: TApplicationEvent; AContext: TObject) : Boolean;
begin
  if AAppEvent = TApplicationEvent.aeEnteredBackground then
    SendNotification;
end;

procedure TForm1.FormCreate(Sender: TObject);
var
  AppEventSvc: IFMXApplicationEventService;
begin
  if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationEventService, IInterface(AppEventSvc)) then
    AppEventSvc.SetApplicationEventHandler(AppEvent);
end;

end.

The main things that we do in this code are:

1. Hook up the Application Event Handler on OnCreate of our form
2. Schedule a notication if the event received is aeEnteredBackground

The rest is handled by iOS for us.

Special thanks to Darren Kosinski who shared one of his test examples on how to handle iOS application events!

iOS Preview "Early Bird" Special – Save 20% on Delphi Enterprise, RAD Studio Professional/Enterprise with Maintenance

Wednesday, March 27th, 2013

Get Delphi XE3 or RAD Studio XE3 today with the iOS Pre-Release Beta, and save 20% when purchased with 1-year Maintenance. Click here to buy from the Embarcadero store with the 20% discount or click below for other options. Offer available for ESD individual user licenses for Delphi XE3 Enterprise, RAD Studio XE3 Professional and RAD Studio XE3 Enterprise only.

What you get:

  • XE3 Multi-Device development with Windows/Mac and 64-bit
  • iOS Pre-release Beta to start learning mobile development today with Delphi (no AppStore deployment during beta)
  • All updates and major releases over the next 12 months. See the 2013 Roadmap for what we have planned.

Buy Online Buy from a Partner Contact Sales

Bonus Pack! Buy Delphi XE3 now and be ready for CodeRage 7!

Thursday, September 27th, 2012

Time is running out to get the Best Bonus Pack ever!

Get Delphi XE3 now and be ready for CodeRage 7!

RAD Studio Mobile Roadmap Published

Thursday, September 20th, 2012

For those of you chomping at the bit for information about our mobile plans for RAD Studio - here is the RAD Studio Mobile Roadmap as published today!

Enjoy!

Embarcadero Affiliate Program - Make Money on Referrals!

Thursday, September 13th, 2012

Yes, you read that correctly. If you sign up as an Embarcadero Affiliate, use our banners and make sales happen, you will earn money!

What are you waiting for? Sign up now!

Enjoy!

RAD Studio XE3: Laguna Hills, CA and Santa Monica, CA

Monday, September 3rd, 2012

If you’re anywhere near Laguna Hills, CA or Santa Monica, CA, please consider coming to the RAD Studio XE3 Launch events!

The Laguna Hills event is 7pm-9pm on September 4th, and the Santa Monica event is 7pm-9pm on September 6th.

Please pre-register here for Orange County (Laguna Hills)

Please pre-register here for Los Angeles (Santa Monica)

See you there! :)

The Embarcadero MVP Program

Tuesday, August 21st, 2012

You may have heard of this program under the working name of "Embarcadero Evangelist Program". The official name will be "The Embarcadero MVP Program". It’s a program tailored to recognizing our awesome advocates in our great community.

An official landing page with links to everyone’s pages etc, as well as official logos, and other materials are in the works, but I wanted to take this opportunity to preview the program if you will, just like we’re starting off the XE3 World Tour as preview events.

It brings me great pleasure to announce this program, and to give you the list of the current MVPs. Some of them have already blogged and/or tweeted. More people are in the queue for sure, and I’m hereby asking anyone that wants to, to send me name and contact information for anyone that you believe should be an MVP. An MVP is someone who is a well known advocate in the community, and does great stuff for everyone’s benefit.

Without further ado, here is the current list of MVPs ordered by country:

AUSTRALIA:

Glenn Stephens
Lachlan Gemmell

BELGIUM:

Filip Lagrou

BRAZIL:

Adriano Santos
Alan Glei
Caique Rodrigues
Carlos Agnes
Daniel Wildt
Guinther Pauli
Luciano Pimenta
Marcelo Nogueira
Marcelo Varela
Marcos Antonio Moreira
Marcos Gomes
Newton Michel de Oliveira
Pedro Bento
Ricardo Boaro
Rodrigo Carreiro
Samuel David
Victory Fernandes

CZECH REPUBLIC:

Radek Cervinka

DENMARK:

Jens Fudge

FRANCE:

Didier Cabale
Felix Colibri

GERMANY:

Daniel Magin
Daniel Wolf
Uwe Raabe

GUATEMALA:

Juan Castillo

ITALY:

Marco Cantu

MEXICO:

Eliseo Gonzalez
Marco Santin

NETHERLANDS:

Bob Swart
Danny Wind

NEW ZEALAND:

Alister Christie

PERU:

Jose Castillo

RUSSIA:

Alexander Alexeev
Alexander Bozhko
Andrey Terekhov
Vladislav Bajenov

SLOVENIA:

Primoz Gabrijelcic

SPAIN:

Germán Estévez Ruiz
Luis Alfonso Rey
Salvador Jover

SWEDEN:

Magnus Flysjö

UNITED KINGDOM:

Brian Long

UNITED STATES:

Alan Fletcher
Cary Jensen
Nick Hodges
Ray Konopka
Robert Love
Olaf Monien

VENEZUELA:

Luis Felipe González Torres

Thanks again to all these great folks, and everyone else for their support. As I said, please remember, this is not an exhaustive list by any means, but I think it’s a great start for the program. More names will be added over time, and assets to recognize these great folks will be forthcoming.

Enjoy!


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

Close