java based cross-platform mobile development

21

Upload: peter-friese

Post on 15-Jan-2015

5.442 views

Category:

Technology


1 download

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.

TRANSCRIPT

Page 1: Java based Cross-Platform Mobile Development
Page 2: Java based Cross-Platform Mobile Development

Cross-Platform Mobile Development

Page 3: Java based Cross-Platform Mobile Development

(c) 2012 Peter Friese, Zühlke Engineering ([email protected] / @peterfriese)

Integrating Twitter in Your iOS 5 Apps

@peterfriese

[email protected]

xing.to/peter

http://peterfriese.de

Peter Friese

Page 4: Java based Cross-Platform Mobile Development

Popular Architectural Patterns for Mobile

Native

Web

HTML5

Hybrid

Interpreted

Cross-

compiled

Page 5: Java based Cross-Platform Mobile Development

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

Page 6: Java based Cross-Platform Mobile Development

So Why Don’t We Use Java

to build Mobile Apps?

?

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

Page 7: Java based Cross-Platform Mobile Development

?mgwt

Page 8: Java based Cross-Platform Mobile Development

?

How does mgwt work?

Page 9: Java based Cross-Platform Mobile Development

?

Demo

Page 10: Java based Cross-Platform Mobile Development

?

mgwt Features

Runs on webkitiOS, Android, BlackBerry

Native-looking UITheming for Android / iOS

Access to platform (gwt-phonegap)

Page 11: Java based Cross-Platform Mobile Development

How does Vaadin TouchKit work?

Page 12: Java based Cross-Platform Mobile Development

Demo

Page 13: Java based Cross-Platform Mobile Development

Vaadin TouchKit Features

Supports iOS, Android

Rich collection of UI components

iOS-Look’n’Feel

Configurable offline support

Access to platform via PhoneGap

Page 14: Java based Cross-Platform Mobile Development
Page 15: Java based Cross-Platform Mobile Development

PhoneGap Build - Wrap your App

Upload your HTML-based app

Build foriOSAndroidWindows PhoneBlackBerry

Download binary via QR code

Publish to app store

Page 16: Java based Cross-Platform Mobile Development

PhoneGap Build - Wrap your App

http://build.phonegap.com

Page 17: Java based Cross-Platform Mobile Development

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?

Page 18: Java based Cross-Platform Mobile Development

Demo

Page 19: Java based Cross-Platform Mobile Development

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

Page 20: Java based Cross-Platform Mobile Development

Want to know more about these patterns?

Native

Web

HTML5

Hybrid

Interpreted

Cross-

compiled

Get in touch: [email protected]

Page 21: Java based Cross-Platform Mobile Development

Peter [email protected]

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!