gps

How to time out GPS signal acquisition

北城余情 提交于 2019-12-18 00:49:48
问题 My app uses the LocationListener to get one position fix and then removeUpdates() once every minute (to conserve battery). The problem is that if a user moves inside then it will perpetually look for a signal, burning more battery. I was wondering if anyone knows of a public method within Location Manager I can use to removeUpdates if a signal isn't acquired within 15 seconds. I would then check for a position fix every five minutes until the user moves back outdoors. Does this make sense?

Given a latitude and longitude, Get the location name

为君一笑 提交于 2019-12-17 23:32:03
问题 I am developing an application wherein I get the latitude, longitude in my android device and post them to a web server. and in a web application I show the location details with the help of google maps. Here I have huge collection of lat long values which i loop it in my jsp and create multiple markers with info windows. Now the problem is that I need to show the location name of the particular latitude and longitude in the Info Window of google maps. Can anyone help me with the google maps

How to improve GPS location Accuracy in Android

做~自己de王妃 提交于 2019-12-17 22:54:15
问题 Hi im working on an app that uses GPS location. My testing devices are Nexus One and Htc Mytouch 3g Slide. So does anyone know how to improve the GPS location accuracy? 回答1: see this post: Google Maps & apps with mapview have different current positions Are you talking about your own MapView witin your app or the Google Maps app? In your own map, use both network provider and gps provider to get the location. Gps only works outdoors under free sky and is more accurate, while a network

how to get wifi hotspot's location?

只谈情不闲聊 提交于 2019-12-17 19:54:29
问题 I want to write an application that it can record the wifi hotspot's location we are accessing and display them in map. But the problem is - how do I get wifi hotspot's location? I think I can use the wifi signal to get the wifi hotspot's location, but it may not be very accuracy at first time. And if there is no other solution, I could record the location of GPS when access wifi hotspot at the first time. 回答1: You'll not be able to find the hotspots location and you'll not be able to

Google Navigation (Android 1.6) intent callback

∥☆過路亽.° 提交于 2019-12-17 18:33:36
问题 I'm using intents to launch Google Navigation: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + location)); startActivity(i); location is a string with GPS coordinates. Google Navigation pops up nicely and plots the route. Can they return some type of callback when the user has reached their destination? Any way of implementing startActivityForResult() ? If not, what would be my best bet? I've been considering running a service in the background that keeps tabs on

Android - Reliably getting the current location

偶尔善良 提交于 2019-12-17 17:54:28
问题 My app checks at a specific time whether a user is at a given location. I use the alarm manager to start a service that makes this call: locationManager.requestLocationUpdates(bestProvider, 0, 0, listener); And also checks: locationManager.getLastKnownLocation(bestProvider); But I'm having problems when running on a real device. For one thing, getLastKnownLocation is most likely the last place the GPS was on, which could be anywhere (i.e., it could be miles from the user's current location).

How to enable GPS in android coding [duplicate]

我们两清 提交于 2019-12-17 17:54:13
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Enable GPS programatically like Tasker Ok, I know there is same question asked before but all answer is "NO". It is proven that enable GPS can be done in coding. Don't believe? try out an application called "LOOKOUT". I believe there is some workaround in order to achieve this. I had read through lookout AndroidManifest.xml, what i found out they only use <uses-permission android:name="android.permission.WRITE

How to set fake GPS location on IOS real device

元气小坏坏 提交于 2019-12-17 17:44:08
问题 Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use 'My Fake Location'. Unfortunately, I didn't find the same app for IOS 7. Any ideas to solve my problem? 回答1: Of course ios7 prohibits creating fake locations on real device. For testing purpose there are two approches: 1) while device is connected to xcode, use the simulator and let it play a gpx track. 2) for real world testing, not connected to simu, one possibility is that your app

iOS Multi-Tasking Track GPS Location

空扰寡人 提交于 2019-12-17 17:26:32
问题 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) 回答1: This is possible — see this document for multitasking in general and this section of the Location Awareness Programming

Unable to get GPS coordinates using Javascript on browser in Android

烂漫一生 提交于 2019-12-17 16:29:15
问题 I am very new to android, java and javascript coding. I am trying to get current GPS co-ordinates and track it thereafter on an Android device. I am using webview and the majority of the code is written in javascript. I have searched a lot for a few days and tried many different ways but I am unable to get GPS co-ordinates on the android device. Please have a look at the code and hel pme figure out why I am not getting the GPS location. A few things to point are - 1. I downloaded and checked