SlideShare uma empresa Scribd logo
1 de 17
Introduction to CLDC 1.0 www.openclassworld.org www.facebook.com/openclassworld Copyright : Saurabh Jain 2010
CLDC Overview CLDC has been specifically configured for very small devices The CLDC 1.0 contains the following packages: ,[object Object]
java.lang
java.util
javax.microedition.ioCLDC is provides the basic support to build an application for very small devices CLDC can not be used alone for constructing a mobile phone application Mobile Information Device Profile (MIDP) / Information Module Profile (IMP) is used in conjunction with CLDC for a complete programming environment Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
CLDC 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
java.io java.io package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
javax.microedition.io javax.microedition.io package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
java.lang package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
java.util java.util package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
Differences between Mobile & Desktop Programming Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
Low amount of memory Memory is the biggest constraint in the mobile phone programming. CLDC, MIDP enabled devices normally support MIDlets under 64 kb, some even below that. Thus as a programmer the biggest task is to conserve space and reuse variables as much as possible. Also the garbage collector is not as efficient as its bigger cousins. Thus the thrust should be on variable reuse. These problems are not there in new phones but still try to be conservative in memory usage if your application has to be used by masses. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
No support for windows MIDP does not support multiple windows. Its user interface (UI) is divided into 2 parts: ,[object Object]
Low level UIIn most of the devices only one screen object is visible at any given time Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
No floating point support	 	Floating point refers to the support for decimal bearing numbers and fractions. In the PC environment or for that matter in many other mobile platforms this constraint is not there. But this constraint is there in the CLDC 1.0 . At first the programmers feel frustrated, but there are practical ways to get around with this problem and in fact many application available today use decimal numbers without the floating point support. This difference really brings out a major difference in the mobile programming from the PC. If PC programming has some set paths, the paths in this platform are few, but there are almost always paths to overcome these problems and find the shortcuts. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
No support for file system  Another major deficiency with old phones is lack of a file system. MIDP supports persistent storage but only through a simple Record Management System (RMS). The record management system consists of different records in a ‘RecordStore’ where they could each be individually read, retrieved and modified. The application can have many different RecordStores.  	Through proper planning and execution this deficiency could also be overcome in a major way. In fact some real world applications support spreadsheets, game stage design stores, notes all with the help of the simple record stores. 	Now JSR 75 does allow accessing file system in Java ME but JSR 75 is not there in every phone which supports Java ME. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
No support for a printer 	A major difference when writing applications on a PC and a mobile device and especially with CLDC, MIDP is that there is no support for the printers. The output of the applications could not be printed. Although a few phones do support printing with the help of Bluetooth but there is no direct support for printing through CLDC or MIDP with the help of a printing API. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame

Mais conteúdo relacionado

Mais de Fun2Do Labs

Transmedia in Open Education
Transmedia in Open EducationTransmedia in Open Education
Transmedia in Open EducationFun2Do Labs
 
Toy Fan Project in School Makerspace
Toy Fan Project in School MakerspaceToy Fan Project in School Makerspace
Toy Fan Project in School MakerspaceFun2Do Labs
 
Maker Education - Making Toy LED Glow
Maker Education - Making Toy LED GlowMaker Education - Making Toy LED Glow
Maker Education - Making Toy LED GlowFun2Do Labs
 
Fun2Do Labs - Open Education Project
Fun2Do Labs - Open Education ProjectFun2Do Labs - Open Education Project
Fun2Do Labs - Open Education ProjectFun2Do Labs
 
Mig33 Developer Program
Mig33 Developer ProgramMig33 Developer Program
Mig33 Developer ProgramFun2Do Labs
 
Android Tutorial
Android TutorialAndroid Tutorial
Android TutorialFun2Do Labs
 
OpenClass - What is Java ME - J2ME
OpenClass - What is Java ME - J2MEOpenClass - What is Java ME - J2ME
OpenClass - What is Java ME - J2MEFun2Do Labs
 

Mais de Fun2Do Labs (9)

Using Arduino
Using ArduinoUsing Arduino
Using Arduino
 
Transmedia in Open Education
Transmedia in Open EducationTransmedia in Open Education
Transmedia in Open Education
 
How to Solder?
How to Solder?How to Solder?
How to Solder?
 
Toy Fan Project in School Makerspace
Toy Fan Project in School MakerspaceToy Fan Project in School Makerspace
Toy Fan Project in School Makerspace
 
Maker Education - Making Toy LED Glow
Maker Education - Making Toy LED GlowMaker Education - Making Toy LED Glow
Maker Education - Making Toy LED Glow
 
Fun2Do Labs - Open Education Project
Fun2Do Labs - Open Education ProjectFun2Do Labs - Open Education Project
Fun2Do Labs - Open Education Project
 
Mig33 Developer Program
Mig33 Developer ProgramMig33 Developer Program
Mig33 Developer Program
 
Android Tutorial
Android TutorialAndroid Tutorial
Android Tutorial
 
OpenClass - What is Java ME - J2ME
OpenClass - What is Java ME - J2MEOpenClass - What is Java ME - J2ME
OpenClass - What is Java ME - J2ME
 

Último

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 

Último (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

OpenClass - J2ME - Introduction to CLDC 1.0

  • 1. Introduction to CLDC 1.0 www.openclassworld.org www.facebook.com/openclassworld Copyright : Saurabh Jain 2010
  • 2.
  • 5. javax.microedition.ioCLDC is provides the basic support to build an application for very small devices CLDC can not be used alone for constructing a mobile phone application Mobile Information Device Profile (MIDP) / Information Module Profile (IMP) is used in conjunction with CLDC for a complete programming environment Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 6. CLDC 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 7. java.io java.io package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 8. javax.microedition.io javax.microedition.io package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 9. java.lang package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 10. java.util java.util package in CLDC 1.0 and MIDP 1.0 Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 11. Differences between Mobile & Desktop Programming Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 12. Low amount of memory Memory is the biggest constraint in the mobile phone programming. CLDC, MIDP enabled devices normally support MIDlets under 64 kb, some even below that. Thus as a programmer the biggest task is to conserve space and reuse variables as much as possible. Also the garbage collector is not as efficient as its bigger cousins. Thus the thrust should be on variable reuse. These problems are not there in new phones but still try to be conservative in memory usage if your application has to be used by masses. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 13.
  • 14. Low level UIIn most of the devices only one screen object is visible at any given time Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 15. No floating point support Floating point refers to the support for decimal bearing numbers and fractions. In the PC environment or for that matter in many other mobile platforms this constraint is not there. But this constraint is there in the CLDC 1.0 . At first the programmers feel frustrated, but there are practical ways to get around with this problem and in fact many application available today use decimal numbers without the floating point support. This difference really brings out a major difference in the mobile programming from the PC. If PC programming has some set paths, the paths in this platform are few, but there are almost always paths to overcome these problems and find the shortcuts. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 16. No support for file system Another major deficiency with old phones is lack of a file system. MIDP supports persistent storage but only through a simple Record Management System (RMS). The record management system consists of different records in a ‘RecordStore’ where they could each be individually read, retrieved and modified. The application can have many different RecordStores. Through proper planning and execution this deficiency could also be overcome in a major way. In fact some real world applications support spreadsheets, game stage design stores, notes all with the help of the simple record stores. Now JSR 75 does allow accessing file system in Java ME but JSR 75 is not there in every phone which supports Java ME. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 17. No support for a printer A major difference when writing applications on a PC and a mobile device and especially with CLDC, MIDP is that there is no support for the printers. The output of the applications could not be printed. Although a few phones do support printing with the help of Bluetooth but there is no direct support for printing through CLDC or MIDP with the help of a printing API. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 18. Different features in different devices One of the major differences from the PC environment is that a program written even in Java ME, although portable without any recompiling in different devices, will look and act differently in many ways. Some special APIs like the ‘Mobile Media API’ are only supported in some specific handsets. Also there is no one or two screen sizes supported by the different devices. The screen sizes can range from anywhere between 96 x 54 to more than 176 x 208. Thus portability takes a totally different dimension in these devices. Some features though standard in some devices are altogether missing in others. Thus the developer should be open to the fact that what looks and feels great in one device could look awful on the other. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 19. Faster production of applications Unlike the PC application which take years to build and test, the compactness of programming increases the speed of application development. Typically applications take less than 3 months to build from scratch. Thus in spite of the demerits the biggest merit is the lower cost of producing applications. Also the strength of teams required for programming is also not much. Teams could generally range from 1 person working alone to 18-20 people, which is very small when compared to the desktop standard where even hundreds or even thousands of programmers are working simultaneously on an application. Copyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 20.
  • 25. Easier NetworkingCopyright : Saurabh Jain 2010 www.openclassworld.org/javame
  • 26.
  • 27. Differences between mobile programming & desktop programmingCopyright : Saurabh Jain 2010 www.openclassworld.org/javame