News from J2mepolish site:
Mobile Developer's Guide- first edition out now
![]()
The first 3 examples come from http://www.j2melbs.com/ .
1, The basic Location Question
Download: http://www.j2melbs.com/content/codes/lbs/CoordinateAlert.java
import javax.microedition.lcdui.*; import javax.microedition.midlet.*; import javax.microedition.location.*; public class CoordinateAlert extends MIDlet implements CommandListener { private Display display; private Form mainForm; private Alert positionAlert; public CoordinateAlert() { mainForm = new Form("HelloMIDlet");
There is many articles about how to test Push Registry with sms, here will give some hints how to test it in WTK.
I. Edit *.jad configuration
MIDlet-1: appname,/app.png,com.easywms.midlet.midletClass
MIDlet-Permissions: javax.microedition.io.PushRegistry
MIDlet-Push-1: sms://:50000, com.easywms.midlet.midletClass, *
or MIDlet-Push-1: sms://:50000, midletClass, *
II. The app must be install via OTA in WTK, this is required for WTK Push testing
Without GPS or Network Operator we can still use the Location Based Service, via the help of CellId(Cell ID the location of Cell Identities of GSM-networks). Google has one enormous database of cell ids which are linked to a longitude and latitude position, that why Google Map client know where you are even you have no embedded GPS--it is not open.
The JavaME Frequently Asked Questions list is a compilation of questions that are
asked frequently by people using
Java 2 Micro Edition
.
I have written one J2EE web service which was run in Tomcat, this service will call Ant to build one J2ME Polish project. It can be run without problem, aber will got such exception "ProGuard is unable to obfuscate: java.io.IOException: Cannot run
program "java": java.io.IOException: error=12, Cannot allocate memory" after several times' building. This is abvious OutofMemory exception.
Tomcat service was run on CentOS linux, the first thing what i thought is to increase the initial memory of Tomcat.
Firstly should create a temporarely SSL certificate to use the
Tomcat in an SSL mode.
Author: David Hayes
Link: http://www.spindriftpages.net/blog/dave/2006/06/18/midlet-jar-signing-a-tutorial-revised/
Recommended to visit original blog to view lots of useful comments
Just record some ways of data interchange in J2ME.
1. XML
1.1 KXML
Size: 30 kb
XML Pull Parser, tested, low memory needed
1.2 XPP3
Recent comments
20 hours 8 min ago
23 hours 34 min ago
1 day 19 hours ago
2 days 14 hours ago
2 days 14 hours ago
2 days 21 hours ago
2 days 23 hours ago
5 days 3 hours ago
1 week 27 min ago
1 week 3 days ago