Upload
microsoft-mobile-developer
View
569
Download
2
Tags:
Embed Size (px)
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.
Citation preview
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
- 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
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
Current Asha lineup focus
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
- 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)
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
- 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
- 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
- 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
© 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
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
Nokia IDE for Java ME Meet Eclipse!
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
Eclipse startup
Meet Eclipse – LIVE DEMO
- 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
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
New project walkthrough
Create new project – LIVE DEMO
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
- 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
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
Start/explore emulator
Meet the Emulator – LIVE DEMO
- 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
© 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
- Create package (JAR/JAD) - Deployment via Nokia suite
Deployment
© 2013 Nokia Introduction to Asha application development v. 1.0 2013-02-26 Attila Csipa
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
© 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
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