gps

Android : INSTALL_FAILED_MISSING_FEATURE

天涯浪子 提交于 2019-12-09 07:20:16
问题 I got error INSTALL_FAILED_MISSING_FEATURE while installing my apps in emulator. I am unable to find out the where is the error. My app consists of both GPS & Camera features. I am not getting where I am wrong. Is it problem with ANDROID MANIFEST???? Please Help me out due to this I am unable to deliver my app.Thank you Updated I am getting this error while installing in CONSOLE [2012-03-16 11:24:50 - DemoCamGPS] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-03-16 11:24:50 -

Android GPS does not work until restart on new phones

陌路散爱 提交于 2019-12-09 06:32:13
问题 I have posted about this issue before, and found a few other people who have had the same issue with no solutions found. I am developing an Android app that submits a JSON query to a server with the obtained GPS coordinates and geocoded Zip Code. For brand new users that have never downloaded the app, GPS does not work whatsoever. It is not until rebooting the phone that GPS will work. After installing the app and then rebooting, the GPS will work every time without problem, even if they

How to determine if a GPS coordinate lies within a rectangular area?

℡╲_俬逩灬. 提交于 2019-12-09 04:57:07
问题 I went through many similar questions on Stackoverflow and other websites and I based my solution on those answers but I still can't get it to work… My problem: I want to determine whether or not a certain GPS location P lies within a rectangular area bounded by four given GPS coordinates A , B , C , D . At the moment I am calculating the areas of triangles ABP , BCP , CDP and DAP . If any of those areas is bigger than zero (don't be upset, mathematicians) the point lies outside my rectangle

Latitude and Longitude showing as 0 in Android

我的未来我决定 提交于 2019-12-09 03:24:44
问题 ************* TrackGPS.java ***************************** import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os.IBinder; import android.provider.Settings; import android.support.v4.app

How long ago was the last known location recorded?

两盒软妹~` 提交于 2019-12-09 02:33:04
问题 I am getting my last known location but not how long it has been since my location was last updated. How can I find out how long it has been since the location was last updated? LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Criteria c = new Criteria(); c.setAccuracy(Criteria.ACCURACY_FINE); c.setAccuracy(Criteria.ACCURACY_COARSE); c.setAltitudeRequired(false); c.setBearingRequired(false); c.setCostAllowed(true); c.setPowerRequirement(Criteria.POWER

Is phone using only GPS to get it's location?

泪湿孤枕 提交于 2019-12-08 21:57:29
I am conducting test where we are compering GPS position of Android phone and GPS device which we would like to integrate in our hardware. But for the test to be accurate, phone need to use only GPS and not cell towers and WiFi. Here is the code, where I set which service does the phone use. LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); locationManager .requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_MILLISECONDS_BEFORE_UPDATE_LOCATION, MIN_METERS_BEFORE_UPDATE_LOCATION, new MyLocationListener(this)); So will phone use only GPS to get it's

Battery life if using GPS and background app ios/android

▼魔方 西西 提交于 2019-12-08 19:10:40
I was wondering if anyone has created an app that starts in the background and utilizes the GPS to gather the current Lat and Long every minute or so? If you have, would you please provide your battery times? As in, how long does your phone last until its all out of juice from just running that background app with standard cell phone programs. I'm trying to see if it would be worth the time to create an app for myself but if i work for 8 hours and dont have a way of charging my phone during that time then i dont want to be going home and it shut down on me since my app i would create works at

Find intersection of two Locations

被刻印的时光 ゝ 提交于 2019-12-08 17:41:51
问题 I want to find the intersection points of two Locations in Android. I don't want to consider cases where the circles as shown in the Figure don't intersect or are included or are completely overlapping. My problem is that the Location is given in degree and the radius (accuracy) is given in meter. I do not know how to mix those Units. In my case the environment is Android, but the Problem is not Android specific. 回答1: You have to convert latitdue, longitude to a cartesian coordinate system,

How to write a background service to get latitude and longitude?

匆匆过客 提交于 2019-12-08 14:29:46
问题 I need to write a background service to get latitude and longitude values. I have an Android application in which it has to find where the user is currently. Is there any way to programmatically get the latitude and longitude values from the system services (or some program)? 回答1: Use LocationManager . The documentation covers this. 来源: https://stackoverflow.com/questions/3640973/how-to-write-a-background-service-to-get-latitude-and-longitude

Obtaining cellsite gps location on Blackberry Curve 8520

社会主义新天地 提交于 2019-12-08 14:09:19
问题 Details of my phone: Model:Blackberry Curve 8520 Version :5.0.0.1036 data services :on When I am installing google maps I am able to see the location ,so there is a chance of obtaining the current location using this phone. I am trying to develop an application which will show the current location of the phone,by using the cell site locations because this phone model does not have an in-built GPS device. I am using the following code: BlackBerryCriteria bc=new BlackBerryCriteria(GPSInfo. GPS