Tuesday, June 2, 2009

Stomach Flulos Angeles

Knowing iPhone / iPod Touch J2ME

After a few posts on mobility, some of you have asked me programming the iPhone and iPod Touch.

most common platforms are Symbian (Nokia, Sony Ericsson, Psion, Samsung, Siemens, Arima, BenQ, Fujitsu, Lenovo, LG, Motorola, Mitsubishi Electric, Panasonic, Sharp), Rim (Blackberry), Windows Mobile (various manufacturers such as HTC, Samsung, HP), Google Android (HTC, Samsung), iPhone OS (iPhone / iPod Touch). With Java, we can develop applications for Symbian, RIM, Android (with SDK) and Windows Mobile. True, Windows Mobile, for example, I prefer to use. NET, provided that we as non-functional requirements that the application is developed in free software. IPhone is very complex development in Java, more licensing issues, which for technical reasons. Therefore, it is best to use Objective-C. Special

iPhone / iPod Touch

- 480x320px resolution display
- A single application captures the focus, the others remain closed.
- RAM limited. Bear in mind that you must release resources when not needed (in Java this process is automatic)
- Additional Hardware: GPS, accelerometer, phone ...
- You may access PIM data: email, contacts, ...




Applications for iPhone: AppStore AppStore In
can find all the applications for iPhone. This is a large repository of programs.
In it, you can find free and paid applications (in this case, 30% of each sale goes to Apple), and operates in a similar way as does iTunes, generating a profit of 430 million dollars performing more than 1000 million downloads.

order to publish in AppStore must have a developer license that comes out about 80 euros. The application we develop must comply with the Terms of Use, which sometimes is quite restrictive, for example, applications have been rejected by assuming the similar competition from Apple. Architecture





Foundation Framework are the core classes to schedule, common to both Macintosh and iPhone / iPod. Cocoa Touch Framework

manages, among other things, events, and the touch interface. Is exclusive to iPhone / iPod.

Objective-C is similar to ANSI C, but its syntax is extended to object orientation. This is a very expressive language, to make us an idea, this would be the declaration of a method:

- (NSArray *) listaCiudadesMayoresDe: (NSNumber *) km delPais: (NSString *) country;


There is no access control methods, since all are "public."
Another feature of language is that all objects are referenced by the pointer. Therefore we must pay special attention to allocate memory and release it when no longer needed.

This only are the bases for those who want to venture into this world of developing applications for iPhone, which is quite peculiar compared with other programming platforms.

0 comments:

Post a Comment