enable GPS from application - Android Software/Hacking General [Developers Only]

i would like to enable GPS directly from my application but i found no hint's howto do that. the only thing i found that i can only do this on rooted phones (my phone is rooted) and that i have to move the application to /system/app .
that's all no problem - but can someone send me a sniplet of source howto enable the GPS?
thank you!

Related

Com port config app for Google Maps

Here is a port selection utility I wrote to configure GMM and other WM5 GPS API based applications on the Smartphone platform. Unzip, copy to your phone and run to select comm port for GMM to use.
Tested on HTC S620 but should be ok for DASH and other WM5 smartphones.
Enjoy!
NOTE: Changing the "enabled" state requires a phone restart to take effect including the initial run
Very nice work. If I hadn't already done it on my dash i'd test it for you. But I don't see why things would differ.
Good job, this should be very helpful to others.
Great job, it works on my dopod C720w. Thanks a lot!
thanks a lot worked like a charm i had done all the registry work but still without success but used the program to set to com6 and gmm finally saw the bt gps. thanks for the little program.
Thank you very much. Works on my Moto Q.
gpscom.zip
i tried to download file for mda but a pasword is requested and jit debugger as well .Help[
gfeltin
gfeltin said:
i tried to download file for mda but a pasword is requested and jit debugger as well .Help[
gfeltin
Click to expand...
Click to collapse
This app is for WM5 Smartphones.
PPCs have GPS config exposed in the settings page.
Thanks! Works fine on my SDA.
works great
Just thought I'd note to any n00b's out there that you need to have your phone app unlocked to make this work (due to teh fact that you are making registry changes). Don't ask me how I know
works on my tmobile dash, love it
Need Help
Hello folks!
Could someone please let me know how to setup the application - like the details on how to choosee the COM port?
I have installed the GoogleMaps and while installing the GPSCOM application, I had set it "Enabled" and selected 'COM6' and saved. Still, when trying to connect from GMM, I am getting the message, unable to locate the GPS device.
Any Help?
Thanks.
Try this on WM6
Hi,
What is the worst possible scenario in trying this on WM6?
working with the blackjack
I have a blackjack and the registry is locked for editing. When I ran this program I got an error along the same lines.
"
GPSCOM.exe
ExternalExeption
An error occured creating the registry key.
RegistryKey::CreateSubKey+0x65
RegistryKey::CreateSubkey+0x8
Form1::ctor+0xec
Form1:Mail+0xa
"
Is there a way to unlock the registry?
My Q doesn't run executeables (exe). Did I miss a step to run GPSCOM.exe on my Q?
analogkidd said:
My Q doesn't run executeables (exe). Did I miss a step to run GPSCOM.exe on my Q?
Click to expand...
Click to collapse
If I recall there was a forum member with a Moto Q that reported it worked for him/her. Check back near the start of this thread and perhaps try contacting them ?
outgoing com port
skihydra said:
Hello folks!
Could someone please let me know how to setup the application - like the details on how to choosee the COM port?
I have installed the GoogleMaps and while installing the GPSCOM application, I had set it "Enabled" and selected 'COM6' and saved. Still, when trying to connect from GMM, I am getting the message, unable to locate the GPS device.
Any Help?
Thanks.
Click to expand...
Click to collapse
You need to set up a new outgoing com port to your GPS device.
Go into the communication manager.
Select settings/bluetooth settings
Menu/ COM Ports
Menu/ New Outgoing Port
Select your bluetooth device and make the port number the same as you used in the GPSCOM app (I think it defaults to 6). Then when you run google maps and track location (GPS) it should totally work.
Doesn't work with my dash for some reason.
Am I missing something?
Where exactly do I put the file? Because when I execute in my Dash, here's the message I get.
Error
An unexpected error has occurred in GPSCOM.exe.
Select Quit and then restart this program, or select Details for more information.
Details:
GPSCOM.exe
ExternalException
An error occured creating the registry key.
RegistryKey::CreateSubKey+0x65
RegistryKey::CreateSubKey+0x8
Form1::ctor+0xec
Form1::Main+0xa
Can anyone please help.
sentry360 said:
Am I missing something?
Where exactly do I put the file? Because when I execute in my Dash, here's the message I get.
Error
An unexpected error has occurred in GPSCOM.exe.
Select Quit and then restart this program, or select Details for more information.
Details:
GPSCOM.exe
ExternalException
An error occured creating the registry key.
RegistryKey::CreateSubKey+0x65
RegistryKey::CreateSubKey+0x8
Form1::ctor+0xec
Form1::Main+0xa
Can anyone please help.
Click to expand...
Click to collapse
You need to app unlock to run unsigned software which needs to edit the registry. See the first link here:
http://www.surrealnetworks.net/mpx/DashApps.htm
Not working on Q
I had Mapopolis working with my Route66 BTGPS on my Q but really like GMM. Installed GPSCOM set it to Com1 (also tried com9) and now both Mapopolis and GMM lock up just after the select device screen.
Help, please

Newbie Needs Help

Hi Guys!
I am new to this forum but already amazed by the sheer amount of content on here!
As per the title of the thread, I am a newbie to XDA's and I was wondering if any of you learned gents would be kind enough to point me in the right direction with a few questions I have about my recently acquired O2 XDA Serra. I have done searches and read the WIKI but there are a few points I could not find an answer to so was counting on your help.
The specs of the machine listed in settings -> system -> device information are:
ROM Version: 1.90.206.4 WWE
ROM Date: 09/01/08
Radio Version: 1.02.25.19
Protocol Version: 52.33.25.17H
Model No: Xda_Serra
I have noticed that unlike my girlfriends XDA Ignito (Diamond) my phone did not come with any map software preloaded in spite of the spec sheet saying a GPS chip is built in to the phone. Also unlike with the Diamond there is no separate YouTube application.
So I would be very greatful if any of you fellows can direct me to where I can get some:
1) Good free map software that will work with the XDA Serra and some advice on how to install it (as I read a lot of GPS problems so want to avoid any issues)
2) Tell me how to get the YouTube application on my XDA Serra and again some advice on how to install it
Also I have read MrSkips very useful guide on how to flash a ROM to the raphael and I was wondering what the overall concensus is on which ROM version is the best? Are all released ROMs on here suitable for my XDA Serra?
Also, I have not unlocked my phone and I understand that there is no need to if I want to flash a new ROM on it unless I want to change the radio version or use other SIMs.
Is there any compelling reason why I would want to change the radio version from the one installed presently on the device? Will it serve to boost GSM/3G/GPS Signal?
If so what radio version is considered to be the best and most stable?
I just got the phone today so a bit hesitant to load ROMs on it straight away in case I brick it but I guess you live and learn so all advice to help me get the most out of the device is much appreciated.
Many thanks - you guys ROCK!!!
NC
First let me remind you that the search feature is there and is quite useful. Second to start answering your questions.
As for GPS I use Google Maps. Which can be found here http://www.google.com/mobile/default/maps.html
As far as configuring the software to connect I update the satellites with "QuickGPS" which should be included on your phone. Then I open Google Maps and tell it to use the GPS, I usually have to be outside for it to connect.
For more GPS Stuff check this thread. http://forum.xda-developers.com/showthread.php?t=427888
As for the Youtube app it may be included on your phone. Check this thread. http://forum.xda-developers.com/showthread.php?t=448824
And finally as far as the radio is concerned there are a few out there but since the device is so new it will take some time before we know the benefits/downfalls of the different versions. Keep in mind that they may have different results in different areas of the world.
And as for flashing new roms if you have read the sticky located here http://forum.xda-developers.com/showthread.php?t=448008 then you should have all of the info needed to be successful. As for which rom it boils down to personal preference just read the threads and make an educated decision from there.
And remember the search feature is your friend.
Im a Fuze/Wm newb too!
When I search my contacts, it has every name doubled. I believe its also showing my SIM contacts. Is there a way to hide it or should I just delete the SIM contacts?
Thanks! (sorry for jumping in your thread OP!)
shamus072 said:
Im a Fuze/Wm newb too!
When I search my contacts, it has every name doubled. I believe its also showing my SIM contacts. Is there a way to hide it or should I just delete the SIM contacts?
Thanks! (sorry for jumping in your thread OP!)
Click to expand...
Click to collapse
You can delete the sim contacts by going to the sim manager, selecting all, then delete (make sure not to select delete CONTACTS).
You could also disable viewing the sim contacts by searching for advanced config and look through the 'phone' options. They will then only show up in the sim manager and not the contacts menu.
Lost_Reaver,
Thanks for your reply. Unfortunately some of your suggestions do not seem to apply to me.
In particular the GPS and YouTube app.
Please note that the ROM I have on my Raphael is specific to O2 UK and for some reason O2 UK has chosen not to include any of the following applications:
YouTube App
QuickGPS
Google Maps
As far as YouTube app is concerned, I used the search feature prior to posting and checked for the application in the following location: windows->youtube.exe. I did not find anything in the windows folder related to YouTube and as such was wondering if someone could tell me where I can get the YouTube app .cab file to install on my XDA Serra.
The same goes for QuickGPS / GoogleMaps. My XDA Serra does not have either of these applications pre-installed. They are not visible anywhere in the file structure of the device. I have since installed GoogleMaps by getting the .cab and am now having the problem that no matter how long I wait the XDA Serra does not achieve satelite lock.
You say that you are able to get lock using QuickGPS as a reciever prep app? If so where can I get QuickGPS from? Will it work on the XDA Serra? I ask because reviews of the device state that an equivalent to QuickGPS is embedded in the O2 ROM by the operator and for this reason QuickGPS was removed. If so, will installing QuickGPS cause more issues?
Anyone with a UK O2 XDA Serra care to comment?
Many thanks!
NC
TeknoJnky said:
You can delete the sim contacts by going to the sim manager, selecting all, then delete (make sure not to select delete CONTACTS).
You could also disable viewing the sim contacts by searching for advanced config and look through the 'phone' options. They will then only show up in the sim manager and not the contacts menu.
Click to expand...
Click to collapse
Thanks!!!
Could someone point me in the direction of the "advanced config"?
You can download Google maps for free. Use the link above within your devices browser.
Anyone with an UK XDA Serra who can help????
shamus072 said:
Thanks!!!
Could someone point me in the direction of the "advanced config"?
Click to expand...
Click to collapse
I have attached the latest version of Advanced config below.
@NCU1980
I have attached QuickGPS, Google Maps, and the Youtube app ripped straight from my phone.
QuickGPS and Google Maps are CABs and the Youtube app needs to go in the "Windows" directory.
lost_reaver said:
I have attached the latest version of Advanced config below.
@NCU1980
I have attached QuickGPS, Google Maps, and the Youtube app ripped straight from my phone.
QuickGPS and Google Maps are CABs and the Youtube app needs to go in the "Windows" directory.
Click to expand...
Click to collapse
Thanks!!!!!!!
Lost_Reaver,
Your YouTube app .zip file did not work but I eventually managed to find both a streaming video .cab file and a youtube app .cab file for VGA resolution and it works great.
QuickGPS for some reason also did not work no matter what location I downloaded the file from your upload or others. However I installed GPS Tweaks and GPS Test and was able to get a signal on googlemaps with a couple up to 5 satelites. All be it a pretty weak one so going to try to do the GPS lag fix and maybe change radio to try to upgrade this issue.
The advance config utitlity works great and I did not know this existed so thanks for that!
Best,
NC
hi, am new to the fourm
i tried downloading the youtube link from above and i can't seem to get it working, i put it into the windows directory but it doesn't seem to get installed
any ideas?
thank you

GPS Google Maps 1.4 (TG01)

hi guys, sorry if this question has been asked before, but is there anyway to enable the gps to fully work google maps with out any need of data connections? i click on settings but dunno what COM ports to change :S do we need third party apps? i heard abt gpsplex or something. pls post a step by step guide to enable gps!!!
Thanks in advance!
olyloh6696 said:
hi guys, sorry if this question has been asked before, but is there anyway to enable the gps to fully work google maps with out any need of data connections? i click on settings but dunno what COM ports to change :S do we need third party apps? i heard abt gpsplex or something. pls post a step by step guide to enable gps!!!
Thanks in advance!
Click to expand...
Click to collapse
As far as I know it's not possible to use google maps without data connection...
You'll need 3rd party app:Igo8, tomtom, sygic mobile, etc if you want maps without data connection...
You'll only need gpsplex(or similar) for using multiple gps apps...
bib*oops said:
As far as I know it's not possible to use google maps without data connection...
You'll need 3rd party app:Igo8, tomtom, sygic mobile, etc...
You'll only need gpsplex(or similar) for using multiple gps apps...
Click to expand...
Click to collapse
Other sat nav programs are not needed for googlemaps, the default TG01 com port is 9 with a baudrate of 4500, but updated roms can change that (mine is com4 atm).
ZedEx48K said:
Other sat nav programs are not needed for googlemaps, the default TG01 com port is 9 with a baudrate of 4500, but updated roms can change that (mine is com4 atm).
Click to expand...
Click to collapse
More accurate:the default TG01 com port is GPD9!
AFAIK Google Maps 4.1 (not 1.4) cannot work without data connection as all maps data are off-board (on Google servers).
As it has been said : iGo (8 or Primo) works great. TomTom may have problems connecting to GPS but that should be ok if using GPSMod Driver.
(I hate TomTom since the day I discored iGo)
And COM is GPD9 as bib*oops said (this is a virtual serial port) and speed is 4800 bauds (not 4500).
if these aren't still work. Please try to serch GPSGate.
I think google maps need data connections, won't work on GPS solely. However, I tried something called 'Rummble' - not a map app, but free on market place for finding nearest 'spots of interest' if that's what you want to use it for. It detects ur location by GPS but doesn't generate the list of nearest 'spots of interest' without data connection!
tanks for all the help guys, but i have managed to get it sorted out in june! cheers anyway to all those who contributed

[Q] bluetooth explorer

my old LG Chocolate phone had a bt feature where you could view and download the files on another bt device. any apps like this for HD2?
bump......
Hi 5tyl15m0,
i have found this when i have used the xda search engine and my good old friend google .
in postings:
http://forum.xda-developers.com/showthread.php?t=364813
http://forum.xda-developers.com/showthread.php?t=298406
--> http://forum.xda-developers.com/showthread.php?p=1374862
http://forum.xda-developers.com/showpost.php?p=3294741&postcount=8
http://forum.xda-developers.com/showpost.php?p=2762713&postcount=2
or here:
http://www.mobiles24.com/downloads/tag/BT+Explorer/htc-hd2-java-apps
or here:
http://uk.answers.yahoo.com/question/index?qid=20100321072833AAPWcez
this is some more info and the way of working:
http://support.t-mobile.com/doc/tm54337.xml?docid=6817&referring%20topicid=72&A2L.SERVICE=Billing&Referring%20TopicID/DocID%20List%20Index=y&navtypeid=2&pagetypeid=26&prevPageIndex=2
nothing of use here. anyone else?
could someone create one? one that doesn't require the other phone to authorise access
one that you can download from another device without them knowing or finding out...

[Q] Playing video files "Audio" on Car speakers

Hi Guys,
Here is a weird requirement. I am able to connect my bluetooth enabled car to my windows mobile phone and play music from mobile phone. everything is perfect here. But when I play Video files, Audio output is coming from my phone instead of car speakers. Should I change settings ? if its that the way it is..Any alternative idea to play Audio from car speakers and video on mobile?
Hope my questions is clear
I searched for this before opening a new thread.
What specific device? Custom ROM or stock? Unlocked level?
You can enable this with a registry edit, and it is mentioned many times in XDA so i'm not sure what exactly you searched for but you can enable it with a tool like, Advanced Config, but only if you're capable of making registry edits to your device.
If it's not unlocked, you can't enable this, sorry. Try searching the forum again for a more detail specific post, try some words like "bluetooth" and "A2DP" -- I'm pretty sure it's mentioned in the WP7 Registry tweaks thread.. In Dev & Hacking... Good luck.
Thanks for your reply . I searched with thread name itself and couldnt find much. Mine is stock rom with Interop-Unlock (Not sure if the phone is developer unlocked) phone which has access to registry settings. I downloaded WP7 Root Tools app and able to change registry settings .
I will search with the text you mentioned and see how it works.
I think i found it. Below is the link. I did this on my phone and will try and see if its working tomorrow and update here
http://wmpoweruser.com/registry-edit-to-enable-a2dp-audio-while-playing-video-on-windows-phone-7/
Its working for me . My problem has been resolved. Please goahead and close this thread.

Categories

Resources