gps

Show current location of user on an offline static image (jpeg) - Android

独自空忆成欢 提交于 2019-12-10 00:12:57
问题 Background / Concept: I want to create an application that can help user searching for specific things. Let say nearby restaurants. Here I want to include an offline map covering 1 km area around that restaurant, (its easy i can take snap of google map). Problem: is it possible to indicate current user position on that static image file? I have some idea that I note the Lat / Long of all four corners of that image, take user current position, do some calculation and show the current spot..

Sending GPS Coordinates via sms

时光总嘲笑我的痴心妄想 提交于 2019-12-10 00:05:36
问题 I am new to android. i am trying to develop an app which fetch users current GPS coordinates and send them via sms to a hardcoded number. I am using two activities, first one has a progress bar and some text( Processing, Please wait),it is actually fetching GPS coordinates in background. The second one is receiving coordinates from first activity and sending the sms. The problem which i m facing is that in MainActivity.java file the condition if(latitude>0) is never satisfied since gps

标准化——从学科分类和代码说起

╄→гoц情女王★ 提交于 2019-12-09 23:29:53
本科时候,接触的第一个国家标准是《学科分类和代码》,当时学测绘,感觉不知道是要干嘛的,就想着要不就转专业吧。看看可以转到哪些专业上去呢? 测绘相近的,我感觉可以转到计算机、建筑学、土木工程、水利工程这几个一级学科相关的二级学科专业上去,虽然也不太懂具体的专业能干嘛,但总比测绘这个 奇怪 的专业好。 后来,倒是慢慢开始了解测绘类学科的相关内容了,转专业的事也就忘记了。实习时候经常编写测绘的技术文档,倒是查看了不少测绘类相关的国家标准。 无规矩不成方圆 ,这里规矩即指相关的法律,也指相关的行业标准。 行业标准是项目实施的依旧,而法律属于事后相关的依据判定。而法律取证的查阅也是需要到行业标准的。所以,项目前了解行业标准是有必要的。 以下介绍一些标准相关的资源地址。 1. 工标网 一般行业现行的标准都是能够查阅得到的。 2. 国家标准化管理委员会 3. 国家标准全文公开系统 与不懂行业标准的人打交道的事 2019年的新年我是在东海舟山市的枸杞岛度过的。因为是内陆省份的人,所以有体验一下海上生活的想法。枸杞岛之行本来应该是个愉快的度年旅行安排,但那时候任职中东区域技术,假期是不应该工作的,奈何中国的春节老外不知道是怎么回事。某个阿富汗的老哥要修一条178KM的公路,急需GPS静态控制网。道路设计的事,按到国内标准我是没资格做不了的。 阿富汗归属于我的区域,总之人家就是找我了

add GPS metadata dictionary to image taken with AVFoundation in swift

天涯浪子 提交于 2019-12-09 23:13:40
问题 I'm trying to add GPS metadata to the image taken with AVFoundation in swift. I have the code pasted below but it doesn't work yet. Where is my mistake? let imageData = AVCaptureStillImageOutput.jpegStillImageNSDataRepresentation(imageDataSampleBuffer) let imgDataProvider = CGDataProviderCreateWithCFData(imageData); let imageRef = CGImageCreateWithJPEGDataProvider(imgDataProvider, nil, true, .RenderingIntentDefault) let properties = self.getImageProperties(imageData) let mutableDictionary:

iOS 4 application lifecycle behavior of standard location service running in background

可紊 提交于 2019-12-09 23:03:12
问题 I'm working on a location tracking application that uses both the standard location service and significant change location service in the background (my app is registered for background location updates in iOS 4+) as applicable. Thanks to this question I have a solid understanding of how significant change comes back from the background state and relaunches from a terminated state. However, I'm still not clear on how the standard location service behaves in these instances. Could anyone

error on java.lang.IllegalArgumentException: provider==null

大城市里の小女人 提交于 2019-12-09 22:58:54
问题 I published my application to android market. I got error in my home page. Somebody wrote crash error. But this application is perfectly working in my real device. I added permission also. My error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.karthi.locationspeecher/com.android.locationspeecher.LocationSpeecher}: java.lang.IllegalArgumentException: provider==null at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651) at android.app

Android GPS onLocationChanged never called

烂漫一生 提交于 2019-12-09 19:22:16
问题 I have an android application and I would like to obtain the location. For this I follow the android documentation, but it doesn't work. The onLocationChanged method is never called. public class GPSTestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); if (locationManager.isProviderEnabled

Should I create service for GPS tracking APP?

时间秒杀一切 提交于 2019-12-09 13:56:15
问题 I am writing a location service App that log where the user has been every minute. Should I create a service for the GPS process? OR just create the LocationManager at the Activity? Which one is better? Moreover, I have tried to hide the application by pressing hardware home button and turn off GPS at Setting -> Location. I found that the App closed automatically within an hour. Is it possible to keep the application always alive? 回答1: I highly recommend creating the gps at the very least as

Android Location return null after Enabling GPS in dialog

痴心易碎 提交于 2019-12-09 12:11:39
问题 When I enter a screen, I check for if GPS is turned on, if not, the dialog to enable GPS is shown. When user clicks Yes, onActivityResult -> GPS is turned on and I try to get the location but this always returns null When I enter the screen with GPS already on, location is retrieved properly. I have been struggling with this for few days now and can't seem to find any resources. UserLocationUtilities.java public class UserLocationUtilities implements GoogleApiClient.ConnectionCallbacks,

Android: detect when GPS is turned on/off (or when no app is using it anymore)

我是研究僧i 提交于 2019-12-09 08:05:48
问题 I'm on Android 2.3.7 and I'm trying to write a BroadcastReceiver that will get called when the user turns GPS on/off (ie: by tapping on the "use GPS satellites" in the options. What I've done so far is this: 1) Created the following broadcastReceiver: public class GPSStatusBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context arg0, Intent arg1) { Toast.makeText(arg0, "Broadcast received!", Toast.LENGTH_SHORT).show(); } } 2)Added this to the android manifest,