473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

problem with accessing the build-in GPS on nokia (N95)

i bought nokia N95 which has JSR-179 support.

however i couldn't communicate with the GPS receiver to get the location

this is the code:

Criteria cr = new Criteria();
cr.setCostAllowed(false);
cr.setSpeedAndCourseRequired(true);
cr.setHorizontalAccuracy(500);
cr.setAltitudeRequired(true);
LocationProvider provider = LocationProvider.getInstance(cr);
Location location = provider.getLocation(30);
System.out.println("Method : " + location.getLocationMethod());
QualifiedCoordinates co = location.getQualifiedCoordinates();
if (co != null) {
System.out.println("Long: " + co.getLongitude());
System.out.println("Lat : " + co.getLatitude());
System.out.println("Alt : " + co.getAltitude());

Result:

Method : 0
Long: 0.0
Lat : 0.0
Alt : 0.0

i really don't know whats the problem T_T;
plz reply as soon as possible;
Mar 10 '08 #1
0 1379

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: James | last post by:
Hi, I am trying to build a shopping cart for my DVD website and am having trouble reading variable over different pages. I have a page that allows the user to add things to their cart and this...
0
by: Phil Schmidt | last post by:
I'm attempting to follow the instructions at http://sebsauvage.net/python/mingw.html, without luck. I have Python 2.3, MinGW 3.2.3, ans SWIG 1.3.19. I get an export error on "initexample" when...
2
by: Helmut Jarausch | last post by:
Hi, I'd like to install SCons (http://www.scons.org) on my Linux box. There, the cvs version of Python is running. Doing as recommended in the README file export...
6
by: james | last post by:
CAn Some one please help when this scrip runs it does not enter the data from my forms, it just says where each feild should be. I have tested it using google address and it appears to work just...
6
by: Ferrari, Eduardo | last post by:
Hi all! I'm trying to create this XML file: <?xml version="1.0" encoding="utf-8" ?> <Build type="Daily" sync="True" compile="True" assemble="True" > <Sync version="1.0.0.0" branch="QA">...
2
by: Adman | last post by:
All, I am experiencing an issue that has confused me, albiet this is not difficult to do. Any help anyone could provide would be greatly appreciated. After our jdbc calls received the...
1
by: zumbo | last post by:
I'm accessing MSOutlook via Microsoft.Office.Interop.Outlook. It works fine if I add a reference to either version 11 (Outlook 2003) or version 12 (Outlook 2007) of the interop assembly to my...
2
by: DaTurk | last post by:
Hi, I have a strange issue. I'm pretty sure it's just some strage configuration issue. I have a solution with a couple CLI projects, and a couple unmanged c++ projects. When I clean, and...
1
by: pavanG | last post by:
The following is the setup I have at home. The problem is I cannot ping Vista machine(192.168.2.5) from XP machine(192.168.2.2) So accessing it from Internet is Out of question My aim is to...
2
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.