473,800 Members | 2,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

29 New Member
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.setCostAllow ed(false);
cr.setSpeedAndC ourseRequired(t rue);
cr.setHorizonta lAccuracy(500);
cr.setAltitudeR equired(true);
LocationProvide r provider = LocationProvide r.getInstance(c r);
Location location = provider.getLoc ation(30);
System.out.prin tln("Method : " + location.getLoc ationMethod());
QualifiedCoordi nates co = location.getQua lifiedCoordinat es();
if (co != null) {
System.out.prin tln("Long: " + co.getLongitude ());
System.out.prin tln("Lat : " + co.getLatitude( ));
System.out.prin tln("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 1387

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

Similar topics

0
586
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 page also display what they have selected. I also am trying to build a 'checkout' page that displays the DVDs they have chosen, the cost and allows them to remove a DVD from their cart. However, I can't even get the checkout page to display the...
0
2094
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 attempting the example. Do I need some extra switches to get SWIG to create that function? Or is it something else? Here's my example build:
2
1664
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 SCONS_LIB_DIR=`pwd`/src/engine python src/script/scons.py build/scons I get after some time
6
1293
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 fine. But i cma't get it to work with the below link. Thanks james <script> function doURL() { ncheckInDate=document.getElementById("checkInDate").value ncheckInMonth=document.getElementById("month").value
6
3537
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"> <Directories basePath="//OpicsPlus/Source/Release" /> </Sync>
2
5798
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 following error: com.ibm.db2.jcc.a.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH203 0X5359534C564C3031
1
2136
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 project. However, I don't want to build two different applications for each version; I want my application to detect and use the current version at runtime. But when I load the assembly at runtime, I don't have access to its classes at compile time...
2
960
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 rebuild the build breaks. During this build I see it copying the files it has a dependency on lacally, and then it breaks with errors saying it doesn't know about them. But, when I do a subsequent rebuild, it works. I don't quite
1
2382
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 host a website on the Vista machine(192.168.2.5). I have the XP machine(192.168.2.2) connected to the gateway router through WLAN. I connected the Vista machine to the Bridge(which is a Belkin router acting as a bridge) through LAN. I'm able...
2
3601
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
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.