App Development forNokia Asha Deviceswith Java ME                       Marlon Luz - INdT               Nokia Developer Ev...
WHAT IS THE                                      CENTER OFINdT?                            RESEARCH                       ...
Training Content •   Nokia App Store •   Nokia Platforms •   Introduction to Java ME Development •   High Level UI compone...
Nokia App Store
Nokia App Store, Series40 & JavaME  120k+ apps, 15m downloads/dayBrasil: 150m downloads (total), 50m in 2012, 500k per day...
Nokia Platforms   Java apps   Phones               Series 40                           Silverlight, XNA
Mobile Platformshttp://gs.statcounter.com/#mobile_os-ww-monthly-201201-201212
Mobile Platformshttp://gs.statcounter.com/#mobile_os-af-monthly-201201-201212
Mobile Platformshttp://gs.statcounter.com/#mobile_os-as-monthly-201201-201212
Nokia SDK 2.0 for Java• Emulates the device  environment• Location, contacts, etc.• Emulates mobile events  like battery, ...
Development• IDE Installation• Overview JavaME• First Project
JavaME Overview• Java Micro Edition (ME) is the Java for devices with  limited resources• Java ME brings a common platform...
Configurations• Support a wide variety of products that fit within  the scope of J2ME;• Defines a Java platform for a wide...
CLDC•   128 kilobytes of memory to run Java;•   32 kilobytes for memory allocation in runtime;•   No user interface;•   Lo...
Profiles• Needed APIs to develop applications for a  specific set of devices   •   MIDP   •   IMP   •   PBP   •   ...
MIDP• Mobile Information Device Profile;• MIDP defines the following set of classes:• Application Lifecycle Package• User ...
MIDP• 3 versions available:                               MIDP 1.0          MIDP 2.0  Memory Requirement       At least 20...
MIDlets• Apps Java that run on MIDP devices are known  as MIDlets• MIDlets are defined in the  javax.microedition.midlet p...
MIDlets• An application manager controls the MIDlet running• The MIDlet behavior is controlled by a life cycle  through me...
MIDlets • The platform can change the state from Active to   Paused at any time                       startApp()         P...
MIDlets • The method destroyApp() of a MIDlet is called when   the platform needs shutdown a MIDlet                     st...
MIDlets • Let´s see how to code a MIDlet   #stopTalking   #startCoding
JAD and JAR • JAD (Java Application Descriptor)    • Provides information on the content of a JAR file • JAR (Java Archive...
Development process Development Station    MyMIDlet.jad   MyMIDlet.java                Download                           ...
Thanks             Marlon Luz ext-marlon.luz@nokia.com               @marlonluz
Upcoming SlideShare
Loading in …5
×

Nokia Asha App Development - Part 1

1,926 views

Published on

Nokia Developer Training for development on Asha Devices with JavaME language

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,926
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Nokia Asha App Development - Part 1

  1. 1. App Development forNokia Asha Deviceswith Java ME Marlon Luz - INdT Nokia Developer Evangelist @marlonluz
  2. 2. WHAT IS THE CENTER OFINdT? RESEARCH & DEVELOPMENT nonprofit with focus in development ofnew concepts,products & solutions for areas related to mobile tecnologies and internet
  3. 3. Training Content • Nokia App Store • Nokia Platforms • Introduction to Java ME Development • High Level UI components • Data storage • Publishing your App
  4. 4. Nokia App Store
  5. 5. Nokia App Store, Series40 & JavaME 120k+ apps, 15m downloads/dayBrasil: 150m downloads (total), 50m in 2012, 500k per day, 56% in Series 40, 73% of purchases are JavaME apps
  6. 6. Nokia Platforms Java apps Phones Series 40 Silverlight, XNA
  7. 7. Mobile Platformshttp://gs.statcounter.com/#mobile_os-ww-monthly-201201-201212
  8. 8. Mobile Platformshttp://gs.statcounter.com/#mobile_os-af-monthly-201201-201212
  9. 9. Mobile Platformshttp://gs.statcounter.com/#mobile_os-as-monthly-201201-201212
  10. 10. Nokia SDK 2.0 for Java• Emulates the device environment• Location, contacts, etc.• Emulates mobile events like battery, sms, etc.• IDE Integration
  11. 11. Development• IDE Installation• Overview JavaME• First Project
  12. 12. JavaME Overview• Java Micro Edition (ME) is the Java for devices with limited resources• Java ME brings a common platform for devices like: • Mobile phones • Pagers • PDAs • Set-top boxes• Java ME defines a set of configurations, profiles e optional APIs;• Java ME enables the developers to create applications for a large number of devices;
  13. 13. Configurations• Support a wide variety of products that fit within the scope of J2ME;• Defines a Java platform for a wide variety of devices, also defines a JVM (Java Virtual Machine) and the minimum set of class libraries available: • Connected Device Configuration (CDC) • Connected Limited Device Configuration (CLDC)
  14. 14. CLDC• 128 kilobytes of memory to run Java;• 32 kilobytes for memory allocation in runtime;• No user interface;• Low power processing, battery enabled device;• 16-32 Mhz Processor
  15. 15. Profiles• Needed APIs to develop applications for a specific set of devices • MIDP • IMP • PBP • ...
  16. 16. MIDP• Mobile Information Device Profile;• MIDP defines the following set of classes:• Application Lifecycle Package• User Interface Package Mobile Information• Persistence Package Device Profile Networking Persistent Interface Storage• Networking Package MIDlet User APIs• Language and Utility Packages CLDC Core classes CLDC or KVM
  17. 17. MIDP• 3 versions available: MIDP 1.0 MIDP 2.0 Memory Requirement At least 200KB At least 256KB High/Low-Level UI Network API Persistent Storage API Game API Secure networking Push Registry Signed MIDlets
  18. 18. MIDlets• Apps Java that run on MIDP devices are known as MIDlets• MIDlets are defined in the javax.microedition.midlet package• Child of the abstract class javax.microedition.midlet.MIDlet• Life cycle defined and managed by methods implemented in the MIDlet;
  19. 19. MIDlets• An application manager controls the MIDlet running• The MIDlet behavior is controlled by a life cycle through methods that a MIDlet has to implement default constructor() startApp() Paused Active pauseApp() destroyApp() destroyApp() Destroyed
  20. 20. MIDlets • The platform can change the state from Active to Paused at any time startApp() Paused Active pauseApp() destroyApp() destroyApp() Destroyed
  21. 21. MIDlets • The method destroyApp() of a MIDlet is called when the platform needs shutdown a MIDlet startApp() Paused Active pauseApp() destroyApp() destroyApp() Destroyed
  22. 22. MIDlets • Let´s see how to code a MIDlet #stopTalking #startCoding
  23. 23. JAD and JAR • JAD (Java Application Descriptor) • Provides information on the content of a JAR file • JAR (Java Archive) • Packaging various kinds of information (classes, images, audio, data) • Attributes JAR/JAD
  24. 24. Development process Development Station MyMIDlet.jad MyMIDlet.java Download /deploy javac Target Devices Download MyMIDlet.class /deploy MyMIDlet.jar preverify MyMIDlet.class jar
  25. 25. Thanks Marlon Luz ext-marlon.luz@nokia.com @marlonluz

×