PiRSquared17 / j4me

Automatically exported from code.google.com/p/j4me
0 stars 0 forks source link

J4ME GPS can't recognize A-GPS in Windows Mobile #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have tried J4ME to access internal GPS device (A-GPS) example. On my
phone, Nokia N78, J4ME works properly. But, when I tried on Windows Mobile
5/6, the sample program can't recognize the A-GPS. Anybody can help me how
to solve this?

thank you,

Budi Susanto
Java Mobile Developer
live in Yogyakarta, Indonesia.

Original issue reported on code.google.com by bud...@gmail.com on 18 Feb 2009 at 8:25

GoogleCodeExporter commented 9 years ago
This is because the JVM on Windows does not support JSR-179 (the Location API). 
 To
my knowledge there is no Windows Mobile JVM that has JSR-179.

I had your problem and wrote Location Source
(http://code.google.com/p/location-source/) to get around it.  However, it is 
only
implemented for IBM's JVM.

What it comes down to is mapping Java calls to the Windows Mobile GPS 
Intermediate
Driver API (which is in C).  The Location Source code contains 98% of the code
required to make this work since it has the Java and C code written.  However 
-- and
this is a big however -- that last 2% is the killer.  It varies from JVM-to-JVM 
and
may not even be possible.  It is the part that loads the native C library (what 
is
System.loadLibrary in J2SE).  Beyond that you also need to figure out where the 
.jar
and .dll should go to get loaded by the JVM.  Again this is all done for IBM's 
JVM,
but not for any other.

Original comment by deanbro...@gmail.com on 18 Feb 2009 at 7:29

GoogleCodeExporter commented 9 years ago
Thank you for your information. That was very help me, because I was at the 
first
time using WM. 

Thanks

Budi Susanto

Original comment by bud...@gmail.com on 21 Feb 2009 at 10:27

GoogleCodeExporter commented 9 years ago
According to the esmertec site (the maker of the JVM on my HTC Touch Pro 
(WM6.1))
JSR-179 is supported (http://www.esmertec.com/43.html). I haven't tested this 
so I
don't know if it works. I have read on forums that this is not the case.

Original comment by jnij...@gmail.com on 4 Mar 2009 at 2:52