gps

How to unregister Listener & stop service from within broadcastreceiver

余生长醉 提交于 2019-12-23 15:10:14
问题 In my App I have a broadcast receiver that upon receiving a keyword in an SMS message, it starts a service that tracks the GPS location of the phone. I do this using - context.startService(new Intent(context,TrackGPS.class)); I also need to be able to stop the service upon receiving another keyword in an SMS message, I have tried to do this but the GPS sensor still tracks the location and GPS icon flashes at the top of the screen. I tried to do this using - context.stopService(new Intent

No GPS location updates on Galaxy S3

和自甴很熟 提交于 2019-12-23 15:07:35
问题 I'm developing a GPS tracker and it works like a charm. But a couple of weeks ago a customer of me (a trackage company) bought Samsung Galaxy S3s for his drivers. And since that we have really strange behaviour of my app. The app receives location updates from GPS receiver, but after some hours of work it doesn't receive any location updates. I have registered the app for onGpsStatusChanged() too and in this time onGpsStatusChanged() was called (I see that GPS receiver have 10-17 satellites!)

requestLocationUpdates minTime parameter purpose

拈花ヽ惹草 提交于 2019-12-23 13:09:17
问题 I'm creating an application (For educational purposes) which records the user's location every 30 minutes, and enables the user the view all the locations on the map. I don't want updates to be more frequent than 30 minutes, but they are. This is how I call requestLocationUpdates : locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30 * 60 * 1000, 0, pe); Now, the documentation clearly says: The elapsed time between location updates will never be less than minTime But I did

Getting time from GPS on iOS

故事扮演 提交于 2019-12-23 12:46:56
问题 I am working on a tracer app. The app requires to know the device location with high accuracy, i.e. it uses location services and ignores locations with horizontal accuracy worse than 20 meters. CLLocation does not declare explicitely if it was determined via GPS or not. However, if the horizontal accuracy is 20 meters or better, it can be supposed that it is a location from GPS. Additionally, I need to know the timestamp when the location was determined. I know about the property timestamp

How to get country name in android?

我与影子孤独终老i 提交于 2019-12-23 12:43:09
问题 Hi I am working with android.I had created a GPS app for getting the current location.Now How can I get the country name from the latitude and longitude value ? is it possible ? please help me and thanks :) here is my code I used public class AndroidGPSTrackingActivity extends Activity { Button btnShowLocation; // GPSTracker class GPSTracker gps; String countryCode,countryName; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R

iOS api for real time traffic data (like geoloqi and Waze)

倖福魔咒の 提交于 2019-12-23 12:34:11
问题 I have been visiting some services api website but can't find what I am looking for. My question is more aimed at what resources to use rather than how exactly it should be done. My iphone app requirement is to be able to track users that are nearby, are commuting and locate them on map. Additional requirement maybe texting them, call them, have video session with them etc. On a high level, this will convert to something like get user details based on longitude and latitude get to know if

GPS车辆监控调度系统解决方案

天大地大妈咪最大 提交于 2019-12-23 10:32:33
一、系统介绍( b2b电子商务网 ) 随着科学技术的飞速发展,GPS(全球卫星定位系统)技术用于地面移动目标的跟踪定位已被广泛应用。特别是美国取消了SA限制后,其定位精度和可靠性有 了很大的提高。作为GPS跟踪定位与远程监控的信息传输手段,无线通讯技术是实现其功能的关键。GSM(全球公众数字移动网)的普及为GPS技术的广泛应用 提供了可靠保障,特别是利用GSM网络提供的短消息服务(SMS)使信息传输更加方便快捷,使GPS系统的运行费用大幅度下降。因此可以说GPS已进入了实用性普及阶段。另一方面随着计算机软件技术的发展,大量数据处理专用软件的开发,促进了地图矢量化、地理数据建库等地理信息技术的发展。作为GPS应用的 载体GIS(地理信息系统)技术以其准确而可靠的数据、多样化的信息输出,开拓出广泛的应用空间。尤其是在智能交通领域,通过GPS、无线通信、GIS技术 的有机结合,为车辆监控、交通控制的智能化提供了大量的解决方案。 本系统利用各种无线通信网做为通信媒介,利用GPS定位技术及其计算机技术等手段,结合运用矢量化地理信息电子地图软件平台,实现对车辆的精确定位、 报警求助、信息服务、防盗报警、中文短消息收发,部分遥控操作及车辆工作状态监察的功能。 系统大体由监控中心、车载设备、无线通信系统三部分组成,无线通信系统由于是利用各种已建成的无线通讯网,不在设计之列

Runtime Error--java.lang.IllegalArgumentException: provider=gps

我是研究僧i 提交于 2019-12-23 08:57:33
问题 I got this error from the user logs on an android app I created. I have been unable to replicate the error thus far. Any help would be extremely appreciated. The error is: java.lang.IllegalArgumentException: provider=gps at android.os.Parcel.readException(Parcel.java:1326) at android.os.Parcel.readException(Parcel.java:1276) at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:646) at android.location.LocationManager._requestLocationUpdates

Android : GPS tracking system for find each other in a close area

故事扮演 提交于 2019-12-23 06:29:24
问题 I have to develop an Android app, what this app is supposed to do is help people find each other in a close area without wasting too much power. Both people can use the app with the phone in their palm facing up to find each other. It can use gps to give an initial direction to travel(Forward, left, right, backwards). It can then use bluetooth and wifi strength to give the users a general idea of whether they are getting closer or farther. It does not need to give the specific distance

Android, Change GPS status when app is device administrator enabled

微笑、不失礼 提交于 2019-12-23 05:15:19
问题 How to set GPS status on when the app is set as Device administrator by user. I'm using this method : private void turnGPSOn() { Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE"); intent.putExtra("enabled", true); getApplicationContext().sendBroadcast(intent); String provider = Settings.Secure.getString(getApplicationContext() .getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED); if (!provider.contains("gps")) { // if gps is disabled final Intent poke = new