MWC/ADC 2013 Introduction to Asha application development

23
Attila Csipa [@achipa] Technology Wizard, Nokia Introduction to Asha application development © 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

description

In this MWC/ADC 2013 presentation Attila Csipa, Technology Wizard at Nokia, provides an overview to development for Nokia Asha including Java ME and web apps. After comparing the development environments and their tools, Attila explores Java ME development in more details. He covers creating a project, running apps in the emulator, debugging, and deployment before mentioning where code examples can be found.

Transcript of MWC/ADC 2013 Introduction to Asha application development

Page 1: MWC/ADC 2013 Introduction to Asha application development

Attila Csipa [@achipa] Technology Wizard, Nokia

Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 2: MWC/ADC 2013 Introduction to Asha application development

- What is Nokia Asha from a developer perspective? - What are my development options? - Nokia IDE for Java overview - Project creation - Running in an emulator - Debugging - Resources - (Second session on advanced examples)

Session content

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 3: MWC/ADC 2013 Introduction to Asha application development

From Series40…

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Developer Platform 2.0 DP 1.1 DP 1.0 6th Ed., FP1 6th Ed. 6th Ed., Lite 5th Ed., FP1

...to Asha

Page 4: MWC/ADC 2013 Introduction to Asha application development

Current Asha lineup focus

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 5: MWC/ADC 2013 Introduction to Asha application development

- WiFi + 3G - 1GHz processor - Capacitive multi-touch - Location services - Internet (email, web) - Social (Twitter, Facebook)

High end of the Asha range Smartphones!

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

(also dual-SIM and ITU-T/QWERTY inputs in other models)

Page 6: MWC/ADC 2013 Introduction to Asha application development

Java ME (Nokia SDK 2.0 for Java) Web apps (Nokia Web Tools 2.3) Xpress web app builder

Developer offering

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 7: MWC/ADC 2013 Introduction to Asha application development

- Low entry barrier - Nokia Web Tools – includes a full IDE with emulator - Limited API set compared to Java ME - Xpress Web App Builder (XWAB) (for a no-code way of presenting data)

Web applications

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 8: MWC/ADC 2013 Introduction to Asha application development

- Java Platform, Micro Edition (MIDP/CLDC = MIDlet)

- Java Specification Requests (JSRs) with Nokia extensions - The recommended environment is the Nokia IDE for Java - …but NetBeans is OK, too

Java ME

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 9: MWC/ADC 2013 Introduction to Asha application development

- Devices have a comprehensive list of JSRs

- Nokia Developer Device Spec API list

- Nokia Ad Exchange - Nokia In App Purchase - Maps API for Java ME

Supported JSRs

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 10: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Nokia IDE for Java ME

Device SDK Manager

Integrated SDK + Toolchain

App Templates

JAD Editor

Page 11: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Nokia IDE for Java ME Meet Eclipse!

Page 12: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Eclipse startup

Meet Eclipse – LIVE DEMO

Page 13: MWC/ADC 2013 Introduction to Asha application development

- Create new MIDlet project - Set configuration/SDK - Set project properties - Set Java project properties/libraries - Add Java ME MIDlet - Choose template

Create a new project This could be the beginning of a beautiful friendship

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 14: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

New project walkthrough

Create new project – LIVE DEMO

Page 15: MWC/ADC 2013 Introduction to Asha application development

LCDUI Limited Capability Device UI Java ME level support Low level (Canvas!) Unified command handling

User interface toolkit(s) An interface is worth a 1000 pictures

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

LWUIT LightWeight UI Toolkit Self contained, bundled High(er) level Containers/layouts

Page 16: MWC/ADC 2013 Introduction to Asha application development

- Convenient way of testing your app - Emulates the whole device - Events (call, SIM swap…) - Sensor emulation (accelerometer) - Camera simulation (webcam) - Canvas zoom - Need something more “real”?

Remote Device Access!

Emulator It’s… Alive!

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 17: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Start/explore emulator

Meet the Emulator – LIVE DEMO

Page 18: MWC/ADC 2013 Introduction to Asha application development

- Set breakpoints - Inspect variables - On-Device

Debugging Do what I want, not what I said!

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 19: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Start debugger, stop at breakpoint, inspect variables

Debugging – LIVE DEMO

Page 20: MWC/ADC 2013 Introduction to Asha application development

- Create package (JAR/JAD) - Deployment via Nokia suite

Deployment

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 21: MWC/ADC 2013 Introduction to Asha application development

Connect device, launch Nokia Suite, deploy to device via drag and drop

Deployment – LIVE DEMO

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Page 22: MWC/ADC 2013 Introduction to Asha application development

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa

Code examples Whet your appetite

• Nokia IDE Nokia Hub → Nokia Series 40 Code Examples

• Online bit.ly/JavaMeExamples

• Emulator Help → MIDlet Samples

• Maps & LWUIT C:\Nokia\devices\Nokia_SDK_2_0_Java\plugins

Page 23: MWC/ADC 2013 Introduction to Asha application development

Want to learn more about Java ME on Asha? http://www.developer.nokia.com/Develop/Java/ Problems? Nokia Developer Mobile Java Forum @NokiaDeveloper Attila Csipa Technology Wizard, Nokia

Thank You! Questions?

© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa