Java based Cross-Platform Mobile Development

Preview:

DESCRIPTION

Studies report there are more than 100 tools and frameworks for cross-platform mobile development. Most of them are JavaScript/HTML5 based, but are there actually any options for "plain old Java developers" that allow you to write mobile apps for multiple platforms in Java? After a brief overview of the general architectural patterns in cross platform mobile development, we will dig a little deeper and have a look at some Java-based frameworks that claim to make the "write once, run anywhere" promise a reality. In particular, I will demonstrate GWT mobile and Tabris (formerly known as RAP mobile). The session will consist of a few introductory slides outlining the architectural differences between the various options and a lot of live demos of the tools.

Citation preview

Cross-Platform Mobile Development

(c) 2012 Peter Friese, Zühlke Engineering (peter@peterfriese.de / @peterfriese)

Integrating Twitter in Your iOS 5 Apps

@peterfriese

peter.friese@zuehlke.com

xing.to/peter

http://peterfriese.de

Peter Friese

Popular Architectural Patterns for Mobile

Native

Web

HTML5

Hybrid

Interpreted

Cross-

compiled

Java == the most popular language for mobile?

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.section == 2) { Speaker *speaker = self.session.speakers.allObjects[indexPath.row]; SpeakerDetailsViewController *speakerDetailsViewController = [[SpeakerDetailsViewController alloc] init]; speakerDetailsViewController.speaker = speaker; [self.navigationController pushViewController:speakerDetailsViewController animated:YES]; } }

Java

Objective-C

C#

JS

6.5%

9.5%

17.2%

1.2%

Source: TIOBE Programming Community Index for October 2012

So Why Don’t We Use Java

to build Mobile Apps?

?

http://petux7.deviantart.com/art/java-cup-208839517

?mgwt

?

How does mgwt work?

?

Demo

?

mgwt Features

Runs on webkitiOS, Android, BlackBerry

Native-looking UITheming for Android / iOS

Access to platform (gwt-phonegap)

How does Vaadin TouchKit work?

Demo

Vaadin TouchKit Features

Supports iOS, Android

Rich collection of UI components

iOS-Look’n’Feel

Configurable offline support

Access to platform via PhoneGap

PhoneGap Build - Wrap your App

Upload your HTML-based app

Build foriOSAndroidWindows PhoneBlackBerry

Download binary via QR code

Publish to app store

PhoneGap Build - Wrap your App

http://build.phonegap.com

Backend

RAP Server

Android Device

FilesImages

Other ResourcesDatabase

http:/

/ (JSON)

Native App

RAP Mobile Engine

RAP App(Java)

iPhone Device

http:// (JSON)Native App

RAP Mobile Engine

How does Tabris work?

Demo

Tabris Features

Supports iOS, Android

Rich collection of UI components

(Mostly) native look’n’feel

No offline support - needs to be online

Access to platform via bridge or native

Want to know more about these patterns?

Native

Web

HTML5

Hybrid

Interpreted

Cross-

compiled

Get in touch: peter.friese@zuehlke.com

Peter Friesepeter.friese@zuehlke.com

Zühlke Engineering GmbH

Am Sandtorkai 6620457 Hamburg

+49 151 108 604 72

Available for consulting,projects, discussing all things mobile - and frosty beverages!

Available for consulting,projects, discussing all things mobile - and coffeinated drinks!

Recommended