How can i make a Gps Location provider? (USB gps) - android

I have a android device without GPS, but i want to run apps that need GPS.
For example i want to make an app like these to use bluetooth gps but instead of using BT im using Android Open Accesory to make an USB GPS, so my problem is not how to comunicate the GPS to Android, my problem is how to make a service/provider that is recognised by android an the rest of the apps could use.
it could be made?

Everything is possible, but maybe not worth:
write a driver to your usb gps and map it at android os level. JNI level and core OS.
use it in your app.
probably it worth to buy a new phone with GPS instead.

Related

Can ANDROID access or use an IP GPS, hosted from GPSd in Linux

I have an Android tablet. It does not have a GPS. Is it possible to have the ANDROID tablet use a shared IP GPS provided by GPSd from Linux?
Thanks
An android tablet without GPS is kind of a strange device. But for an answer- with a custom ROM, sure. You could add a location provider, even name it as the GPS provider so requesting GPS would get that. Without a custom ROM, no. But the NETWORK provider should still work based on wifi/cellular networks.
Gabe,
thank you for taking the time to answer my question. It was what I expected. Its a shame as I wish I access an IP based GPSd service. Originally I was trying to find a rugged bluetooth gps for an android tablet. But one does not exist.
All the best
Dave

Mocking gps locations in phonegap

I'm relatively new to Phonegap and I would like to know if there is a way to mock gps location on a android device using it or if using the Location class in android is the only way to do it?
Check the link below:
http://www.cs.nott.ac.uk/~cmg/G54UBI/coursework2/GPS_and_Maps.html
Getting GPS position
Using the location sensor in AppInventor:
http://www.cs.usfca.edu/~wolber/appinventor/locationsensor.html
Using GPS in JavaScript, including PhoneGap:
http://docs.phonegap.com/phonegap_geolocation_geolocation.md.html#Geolocation
Note the "quirk" at the bottom, i.e. to get mock GPS on the emulator you must set the option
"enableHighAccuracy" to "true".
It appears that there is a problem with mock locations on the Android 2.3.3 emulator (it seems to
crash/reboot the emulator). Please avoid using this version of the emulator; try Android 2.2 instead.

Locating Without WiFi/Celluar API

I know it sounds weird. It happens that those Locating APIs regarding WiFi/celluar assistance are disabled in most Android handsets in China. That is, I could hear the callbacks of GPS_PROVIDER when I was out of the building. But if I was in the building, I would never hear the callbacks of NETWORK_PROVIDER. As a result, my app won't be able to locate if put indoor. (I did some experiments with handsets shipped from the states. My app located perfectly well with the NETWORK_PROVIDER if put indoor.)
My guess is that those Chinese Android handsets have sort of castrated the Android OS so that any API related to WiFi/celluar assistance locating has been removed.
But my app still needs to locate. A city-level accuracy will do.
So my question is, is there any possible solution for my situation. Right now I'm considering:
IP address reverse-lookup. But the accuracy is far worse than city-level.
Let my app collect any necessary information (such as router MAC address, celluar tower info) and send them to a third-party server. That server would locate and send back location info to me.
Find (magically) a third-party SDK and hopefully that SDK would do the trick.
Thanks in advance!
IP lookup is fine. You can also try skyhook wireless's location SDK: here
iOS in the early days are using them, and they are actually better/more accurate than Google's location service.
It is definetly possible. You look at the services of Imere's ULaP.

Android ad-hoc / access point connection capabilities

I am looking for the best, if any, programmatic way of connecting two or more Android phones to each other through the use of either Bluetooth or preferably, Wi-Fi. Apparently Android devices still do not have ad-hoc Wi-Fi capabilities and I am trying to create a peer based program without the use of any central server.
I want to accomplish this without the use of modification to the phones (no rooting). It is even fine to have a phone act as an access point with no Internet access to its clients if that is possible, I just need a mobile network.
I have 2.2 on my Android phone and it does have tethering - it can create a wireless access point then other devices can connect to it.
To prevent it having the internet, just turn mobile internet off.
The short answer is, you can't directly through the SDK. Some phones / revisions may have factory or other support to do so, but you can't rely on the SDK to do this.

unable to get current location on SonyEricsson X10i

I am using SonyEricsson X10i phone. I have developend an application that just shows the current location of a user. Now the problem is When i turn on my application it just keep searching. It is not showing anything. Even if i try to use built in navigation system it does not work. I have turned on GPS receiver. My firmware version is 1.6 and kernel version is 2.6. I am not sure but i came to know from some resource that 1.6 firmware does not support GPS. Let me know if someone knows the solution.
Are you indoor or outdoor? GPS
usually only works well outdoor.
Do you
have turned 'network' as a data
source on in your location settings?
Allowing triangulation/cell
towers/wifi networks to get the
location if GPS/satellite is not
available.

Categories

Resources