Skip to main content

Posts

Showing posts with the label gps

iOS Multi-Tasking Track GPS Location

I was just wondering if it was possible to make an iOS app that would track your location via GPS while it was in the background. I tried this with the built-in app "Maps", but to no avail. If this is possible, it would be great if you could refer me to some sample code, documentations, or tutorials! (if this is a duplicate, please let me know and I will remove it) Source: Tips4all

GPS and draw MapRout in iphone

I have a latitude and longitude that is fixed, so I used that and got the point in mapview with pin. Now I want the current location and draw route, so I think using gps I get the latitude and longitude. Using this location(latitude & longitude) I have to draw a route with my fixed value (latitude & longitude). How is it possible..? Is this is the right way to do it? ?How to draw the route with two point..? I have used the delegate method but it doesn't call, - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { [manager stopUpdatingHeading]; NSLog(@"latitude=%f",newLocation.coordinate.latitude); NSLog(@"longitude=%f",newLocation.coordinate.longitude); }

database design for tracking the location. NEED HELP!! :(

im currently doing the database design for an android app like friend finder. im doing the coding in java and i'l be using google maps to display the location. location is tracked using gps. the functionality would be: -locate u n all ur friends on the map -give alerts when a friend is somewhere close like within 5km -hide users location from certain people. this is what ive come up with so far.. location ---------- location id location name user --------- user id and rest of the details friendlist ------------ userid friendid distance_frm_user users_location [visible, nt visible] type [friend, rejected] if the user accepts a friend request then 2 rows r created in the friendlist table one with userid=1 and friendid=2 second with userid=2 and friendid=1 and the attribute "type" in the friendlist wud be set to friend for both the rows in the friendlist table. users_location is set to visible if the user wants that friend to see his location. my ques

Android: Prevent GPS from stopping

I have an issue with the GPS on Android. I am using the onStatusChanged(int status) with the GPSListener to read the status of the GPS. However, I notice that after some point, the GPS stops since the status returns: GpsStatus.GPS_EVENT_STOPPED How can I prevent the GPS from stopping at all? (Eventually I will stop it manually, but having it on when needed is very crucial)