J2ME Tutorials

11. Using List to create a Menu and Menu items in J2ME

By: Eric Giguere : 2008-07-10

Description: This example creates a list of items (Item1 to Item4) and calls the prepare method whenever an item is selected. The testItem# methods, where # s a number between 1 and 4, call the prepare method and set the name of the menu.

12. Using alerts and tickers in J2ME

By: Eric Giguere : 2008-07-10

Description: This is a simple stock tracking MIDlet that demonstrates the use of alerts and tickers. Note that the stock values are generated randomly for example purposes. In the real world, you would use the HttpConnection class to obtain stock values from a web site. Note particularly how the alert text can be changed while the alert is still active.

13. J2ME Canvas sample to show games programming in J2ME

By: Emiley J. : 2008-07-07

Description: This sample J2ME demonstrates the use of Canvas in a midlet. Most of the graphics methods available are used here to let you quickly learn the concepts of graphics programming in J2ME program. It also shows the basics of creating a J2ME game using the controls of a phone. For example handling the left, right keys and the up, down keys etc.

14. Timer and TimerTask example in J2ME

By: Emiley J. : 2008-07-07

Description: This sample J2ME program demonstrates the use of Timer and TimerTask in a midlet. This MIDlet creates two gauges. One gauge gaugeOne, sets elements from low to high. The other, gaugeTwo, set elements from high to low. In effect, this has gaugeOne "going up", and gaugeTwo "going down."

15. List of GPRS Access points for all countries

By: Emiley J. : 2008-06-27

Description: If you are looking for a list of Access points for various countries, then here is the list. Depending on your mobile operator you can choose different access point names shown below and configure your phone gprs. Most of the mobile operators do provide a OTA provisioning where by the settings are pushed to the handset from a website. However some phones still need to be configured manually in order to use GPRS.

16. What is J2ME?

By: Emiley J. : 2007-12-06

Description: J2ME is the short form for Java 2 Micro Edition. J2ME is meant for tiny devices such as mobile phones, TV set top boxes, Vehicle telematics, pagers, PDAs etc. 

17. Getting Started with J2ME

By: Emiley J. : 2007-12-06

Description: A brief introduction of what is J2ME? is a good place to getting started. As with any other technology J2ME has its own set of toolkits and IDEs.

18. A sample J2ME Auto-resume program.

By: Emiley J : 2007-09-22

Description: Do you need to create an application that does auto-resume (after a phone-call, or whenever a flip-phone is opened). Here is a sample J2ME Auto-resume program.

19. getPosition() the right strategy in getting GPS

By: Fazal : 2007-09-22

Description: This article describes using the getPosition() method to get the GPS position in the background. I call this method from a separate thread like documentation recomends, so I can show a 'Cancel' button in the display in case I want to cancel the GPS request. The thing is that I don't know how to make getPosition() function to stop requesting. I want getPosition() to stop executing when I push 'Cancel' button. How do I do that? I'm sure there is a way, because the built-in app to get GPS position stops when I cancel.

20. translate() Sample program in J2ME

By: Baski : 2007-09-17

Description: The point (x, y) specifies to a drawing function a location relative to the point (0, 0). The point (0, 0) is the origin of the Graphics. When you first obtain a reference to your canvas Graphics, its origin, the point (0, 0), always represents the top-left corner of the device's display (the destination).