locationManager = (LocationManager)context.getSystemService(context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);
Geocoder geocoder = new Geocoder(context);
List myLocation = null;
try {
myLocation = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(), ...
I have an application that creates a LocationManager object and requests updates, but it causes repeated messages like this in the logcat:
D/lib_locapi( 102): loc_eng_report_status: GPS_STATUS_SESSION_BEGIN
D/lib_locapi( 102): loc_eng_report_sv: valid_mask = 0x30, num of sv = 4
D/lib_locapi( 102): loc_eng_report_nmea
D/lib_locapi( ...
Hi guys,
I am writing a windows mobile application based on GPS technology. everything is ready but I need the function which is used to retrieve GPS location coordinates (latitude and longitude).
I declared latitude and longitude, but now I need the function of GPS to put it inside a button I created, get longitude and latitude values...
Hi, I am trying to create simple GPS application just to display simple data in simulator. I have no errors just cant obtain data. "didFailWithError" method is the only I can get to work :), this is the code:
- (void)viewDidLoad
{
[super viewDidLoad];
lm = [[CLLocationManager alloc] init];
if([CLLocationManager locationServicesEn...
I just send some coordinates to the android emulator.
I used this commands for sending the fixes:
geo fix 8.494062000 52.038213000
This will send my emulator near the bielefeld university in the google maps app.
The next command I issued was:
geo fix 8.495543000 52.038180000
Sadly my position does not change on the emulator. Ev...
I've carefully read this thread: http://stackoverflow.com/questions/2021176/android-gps-status
but it still didn't illuminated me.
I want to achieve a very simple thing: I have 3 satellite icons: one red, one orange and one green. When the user is in the activity that uses the gps I have the satellite icon on a corner and I simply want...
Hi,
I try to get the correct speed in updates for the function onLocationChanged, this is my class:
public class LocationService extends Service implements LocationListener {
Putting the minTime on 6000 does not help, it wil keep updating constantly, what am i doing wrong?
public void requestLocationUpdates (String provider, long mi...
Hi
im doing an application that will use GPS in background mode, then i need that it works also when my phone is blocked and with black screen.
but i can't find any information about if gps is off when phone is blocked
can someone tell me please?
thanks
...
Hello,
I have the problem that my service which has the LocationListener implemented, receives a GPSupdate every 500ms it seems. No matter what minTime i put in the requestLocationUpdates function.
Piece of my code:
public class LocationService extends Service implements LocationListener {
LocationManager locMan;
@Override
...
I want to be able to do like FakeLocation ( http://iphonehelp.in/2009/12/17/fakelocation-lets-you-to-fake-your-gps-location/ )
Is there any documentation online on how to hook the CoreLocation framework and fake the GPS location obtained by any app?
Would like to implement my own solution.
Regards,
John
...
Greetings,
I was hoping someone out there could provide me with an equation to calculate a 1km square (X from a.aaa to b.bbb, Y from c.ccc to c.ccc) around a given point, say lat=53.38292839 and lon=-6.1843984? I'll also need 2km, 5km and 10km squares around a point.
I've tried googling around to no avail... It's late at night and was ...
Hi All,
I am using LocationManger class to get user's current location. When i install application from App store and run application first time application ask me that " APP would like to use your current location." followed by "Don't Allow" and "Ok" button. At this point of time application works fine.
Now I uninstall application and...
Hello,
In my application on the iPhone and iPod Touch I want to be able to retrieve the country a person is in without accessing the internet. I know how to do this with internet, so I know how to retrieve the longitudes and latitudes, I've read something about a file with the world borders included, but I don't know how to use this in ...
I'm looking for some kind of way to find nearby shops/companies given a GPS location.
I was looking at the Google Places API but that is still under development.
Is there any other way to accomplish this?
...
Hi,
I am usin location service for getting latitude and longitude of my location.While running my program it will give me wrong latitude and longitude.How can i get my current location details accurately? Is there any settings in mobile /device ?
String locationProvider = LocationManager.GPS_PROVIDER;
if(!locationManager.isProv...
Hi,
In geocoder class document i read below lines
The Geocoder class requires a backend service that is not included in the core android framework. The Geocoder query methods will return an empty list if there no backend service in the platform.
How can I know if my framwork(1.6) providing background service for Geocoder.Currently it ...
Hi,
My Device with SIM and Wifi connection.When I near to the accessble position of Wifi My program shows me correct Location by using gps service.When I go far from WiFi it gives me gps is not available and it doesn't take NETWORK_PROVIDER for displaying location.How can I make sure that to take Network_Provider if WiFi is unavailable?...
Hello guys,
I'm a beginner android developer.
I want enable and disable GPS with a click of a button, without running this intent:
intente in = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(in);
that brings me in the setting menu.
Is there a method to enable or disable GPS as in the androi...
Is there a way to get Windows Phone 7 to “broadcast” its physical location automatically?
I’m trying to work around the fact that the GPS data will only be available to my app when the app is actually running. Ideally, it would somehow be possible for the user to configure the phone to continuously broadcast the location at intervals to...
Hello,
DOes anyone have any experience decoding Garmin's ADM file type? It's used by their MapSource software for creating content and putting it on one of the devices, however i'm attempting to create a standalone reader for such files. Does anyone have experience with this sort of thing?
Thanks,
brian
...