473,394 Members | 1,740 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,394 software developers and data experts.

Get if Gps settings are enabled or not on windows mobile 5.0

15
How can we get if the Gps of the phone is enabled or disabled? Can you provide a small code snippet in C# for Windows Mobile 5.0 for detecting if Gps on WinMo is enabled or disabled. I have to use that in my application. If some API gives a bool value in return, so that i can use it for detecting gps on mobile.
May 4 '10 #1
3 2881
markmcgookin
648 Expert 512MB
Have a look for WindowsMobile.Samples.Location in the Windows Mobile SDK then turn off GPS (or run it in an emulator) see how that reacts/what data it returns, and that should give you the results you are looking for.

Thanks,

Mark
May 4 '10 #2
gopishk
15
I tried running that sample on emulator, but it behaves normally, means it does not show anything to do gps settings. I think its not detecting the phone gps status.

They are just opening the GpsDeviceDriver for receiving gps from the device.
Is this the correct flow? Any other way i can find the gps status of device?
May 4 '10 #3
markmcgookin
648 Expert 512MB
Hmm.... so you want to say "No GPS device detected" before trying to initialize it? And have this be different from the device not having any signal? .... hmm.

Not sure, because Windows Mobile have "virtual device manager" or something like that which handles the GPS... and it's there even if the device doesn't have a GPS module, because it can handle data coming from a Bluetooth device too..

I think your best bet would be to look for the gps data for say 2 minutes, then if you havent got any, report this to the user and get them to make sure that the device has GPS, it is enabled, and has a line of sight to the satellites (i.e. outside)
May 5 '10 #4

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

Similar topics

6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
5
by: Dhilip Kumar | last post by:
Hi All, I'm writing a Windows Service app using C#. I need to read some configuration settings before the service starts up. These settings will be used by the service in its operation. ...
0
by: Nick White [MSFT] | last post by:
Hello fellow Microsoft Windows Mobile and Embedded enthusiasts: I invite you to peruse the list below of upcoming technical chats and Webcasts offered by the Windows Mobile and Embedded Devices...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
7
by: iKiLL | last post by:
Hi all I am still pretty new to .Net and C#. I have come from a VB6 Background.
1
by: sakurasyi | last post by:
hi everyone... i have some questions about windows ce. Can anybody tell me, what are the differences between widows ce, windows mobile and posket pc? I have read about windows ce from some...
2
by: igasempa | last post by:
I develop software and selling it to Telcos so they provide it as a service to their mobile(cellphone) customers. I also sell to individual computer and mobile phone owners. I am looking for a...
4
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
1
by: =?Utf-8?B?VGVycnk=?= | last post by:
I am using the My.Settings object to save user settings. During testing, I want to 'zero' out what has been saved to start with the defaults again. Where doies the framwork actually persist these...
9
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I downloaded the sample application that the Microsoft video ASPNETAJAXForWinMobile described but it doesn't work on my Windows Mobile 6 emulator. After enabling the script error reporting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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...

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.