Simon, I don't believe you will be able to do what you are trying to do. Standard implementations of these API's use native code to interface with the underlying phone operating system to provide the functionality. You will not be able to deploy a different implementation of JSR 179 onto another phone. You could create your own implementation (for instance using NMEA over serial port connections), but you are going to have to create the entire JSR 179 stack. You will need to have (at least) two versions of your midlet code... One for phones that have native JSR 179 support and one that has your own implementation.
Craig Simon Brooke wrote: > This may well be another very stupid question. I'm building something > which uses the Location API (JSR 179), and which will be delivered to > devices which don't provide the location API natively. So I either need > to include the class files from lapi.jar into my midlet package, or > find some other way of making lapi.jar available on the device. I've > implemented a sub-class of LocationProvider which /should/ communicate > with the GPS module built into the device (but which I can't yet debug, > because of not being able to get the location API onto the device). > > I also need to make lapi.jar available to the emulator (Sun Java > Wireless Toolkit 2.2), because currently it's giving me: > > Running with storage root DefaultColorPhone > java.lang.NoClassDefFoundError: > javax/microedition/location/LocationException > at uk.co.weft.fisherman.fieldkit.midlet.FieldKitMidlet.<init>(+365) > at java.lang.Class.runCustomCode(+0) > at com.sun.midp.midlet.MIDletState.createMIDlet(+19) > at com.sun.midp.midlet.Scheduler.schedule(+52) > at com.sun.midp.main.Main.runLocalClass(+28) > at com.sun.midp.main.Main.main(+116) > Execution completed. > > Any suggestions as to how I do this? > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
