gps

Photo taken with camera does not contain any ALAsset metadata

☆樱花仙子☆ 提交于 2019-12-18 12:30:49
问题 The weirdest thing is happening. I have an action sheet which gives the user the choice to either take a photo with the camera or choose one from the camera roll. Upon the UIImagePicker returning from selection I use the ALAssetsLibrary to determine the GPS information embedded in the photo. Choosing a photo from the camera roll works perfectly and I am able to retrieve the GPS information. However, taking a photo with the camera provides absolutely no GPS information, in fact I have no

Photo taken with camera does not contain any ALAsset metadata

守給你的承諾、 提交于 2019-12-18 12:30:15
问题 The weirdest thing is happening. I have an action sheet which gives the user the choice to either take a photo with the camera or choose one from the camera roll. Upon the UIImagePicker returning from selection I use the ALAssetsLibrary to determine the GPS information embedded in the photo. Choosing a photo from the camera roll works perfectly and I am able to retrieve the GPS information. However, taking a photo with the camera provides absolutely no GPS information, in fact I have no

Is it possible to detect a mobile browser's GPS location? [duplicate]

烈酒焚心 提交于 2019-12-18 12:27:37
问题 This question already has answers here : Get GPS location from the web browser (6 answers) Closed 2 years ago . I am making a web site targeted at mobile phones and would like to get the user's current GPS latitude/longitude when they visit my default page so I can show them results in their area. Is this possible using ASP.NET? See Also Get position data from mobile browser 回答1: There are services that will give you a location based on IP address. It won't be as precise as the GPS data but

getLastKnownLocation returning NULL

♀尐吖头ヾ 提交于 2019-12-18 12:24:27
问题 I had just got this to work but when I turned off my Wifi to see if I could get a more accurate location using my GPS it's now bringing me a NullPointer error and I can't see why. The below code gets called first; public void onConnected(Bundle dataBundle) { connected = true; //Request an update from the location client to get current Location details mLocationClient.requestLocationUpdates(mLocationRequest,this); Toast.makeText(this, "Connected", Toast.LENGTH_SHORT).show(); } Which then

requestLocationUpdates interval in Android

两盒软妹~` 提交于 2019-12-18 11:59:37
问题 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 minTime, float minDistance, LocationListener listener, Looper looper) { Greetings 回答1: The minTime is just a hint for the LocationProvider, and it doesn't mean that your

How is it possible that Google Fit app measures number of steps all the time without draining battery?

倾然丶 夕夏残阳落幕 提交于 2019-12-18 10:44:44
问题 The Google Fit app, when installed, measures the duration you are walking or running, and also the number of steps all the time . However, strangely, using it does not seem to drain the battery. Other apps like Moves which seems to record number of steps pretty accurately declares that it uses a lot of power because of it constantly monitoring the GPS and the accelerometer. I imagine several possibilities: Wakes up the phone every minute or so, then analyses the sensors for a few seconds and

Android: compass + distance in a listview

故事扮演 提交于 2019-12-18 10:32:28
问题 I guess you have all tried "Google Places" in Maps. This is a list of POI close to you. I really would like to do the same feature in my application with a list of GPS coordinates, but that seem really complicated. Making the listview with the distance and the little arrow is very easy, but I cannot understand how to update this list and the arrow everytime the user move his phone. For now I have a static listview. I would like to know if someone succeed to create such a listview. Thank a lot

GPS myservice doesn't update in time intervals

南楼画角 提交于 2019-12-18 09:49:26
问题 I am trying to run a service where the user selects a time interval and in this time the GPS location is updating. My app doesn't update location. The selection class where I get the google maps working (this was working before): public class selection extends FragmentActivity implements OnMyLocationChangeListener{ GoogleMap googleMap; double latitude=0.0; double longitude=0.0; String code_value=""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Best option for supplying Quadtree GPS Data to an app?

佐手、 提交于 2019-12-18 09:31:45
问题 We have >25 MB of static Quadtree Data that we would like to provide as part of a cross platform app, which can then be searched by the app code to get details of locations close to the user's current GPS position. We would like to search the data without loading all of the data into memory, in a quick time, and ideally without reinventing the wheel. We have looked at supplying a database using R-Trees in SQLite for this, which sounds like it would be ideal, but apparently these are not

Android GPS proximity alert not working

冷暖自知 提交于 2019-12-18 09:04:23
问题 I'm trying to set up the most basic proximity alert, but nothing seems to happen. I'm fairly new to Android programming, so please let me know what I'm doing wrong or what am I missing. I got inspired from some source codes out here and this one. Here's my code: package com.example.proximityalert; import android.location.LocationManager; import android.os.Bundle; import android.app.Activity; import android.app.PendingIntent; import android.content.Context; import android.content.Intent;