gps

Javascript/PHP can I get GPS location and send it to me?

旧城冷巷雨未停 提交于 2019-12-20 07:49:24
问题 Ok here's what I want: I need something like a Javascript or PHP script to get a gps location from a visitor, and then secretly send it to me (I won't use this bad, it's for an website that prevents my iPhone from being stolen) I want that if a thief opens the website (which I will webclip, name Safari and give the safari icon) I automatically get his location and he's redirected to google or something else So basically like this: navigator.geolocation.getCurrentPosition(GetLocation);

How to get location of android device by its android id

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 07:28:56
问题 I am new in android and recently start learning about Android and I am trying to get location of any android device by its unique android id. By that I can track the approx or exact location either by GPS or network provider. In detail I mean to say that whenever i enter any Android id in my app i can get device location in my application. Thanks for your kind help. 回答1: Finally I am able to do with this code: public class MyService extends Service implements LocationListener{ String GPS

GPSTracker Class not working

淺唱寂寞╮ 提交于 2019-12-20 06:43:40
问题 I have tried to use a GPSTracker class that I found online in my application, and I had it working earlier, but it seems to now inexplicably not work. public class GPSTracker extends Service implements LocationListener { private static final String TAG = "GPSTracker"; private final Context mContext; // flag for GPS status boolean isGPSEnabled = false; // flag for network status boolean isNetworkEnabled = false; // flag for GPS status boolean canGetLocation = false; Location location = null; /

Collecting GPS co-Ordinates

…衆ロ難τιáo~ 提交于 2019-12-20 06:12:52
问题 I am building a native android app using xamarin. The issue is, that the application collects and displays the coordinates perfectly on the emulator but when I put it on a smartphone (tried 2 samsung phones) it comes up with can't determine the current address. Extra information data and locations are turned on so I am not sure where the issue is. Thanks for your help. here is the xammarin recipe encase that helps https://developer.xamarin.com/recipes/android/os_device_resources/gps/get

Android mapView different in phone and emulator

不问归期 提交于 2019-12-20 06:07:05
问题 About App:--This is a simple app which find the user current location. Problem:-- The app works fine on emulator please see the image. But in phone it is not showing the MapView.Please see the image. Please tell me what is going wrong with the phone. In Phone it just download the huge(20 mb) data but not show the actual map. Logcat im getting - 10-31 16:44:45.994: E/MapActivity(3026): Couldn't get connection factory client 10-31 15:47:42.319: ERROR/MapView(1773): java.lang

Android mapView different in phone and emulator

吃可爱长大的小学妹 提交于 2019-12-20 06:06:22
问题 About App:--This is a simple app which find the user current location. Problem:-- The app works fine on emulator please see the image. But in phone it is not showing the MapView.Please see the image. Please tell me what is going wrong with the phone. In Phone it just download the huge(20 mb) data but not show the actual map. Logcat im getting - 10-31 16:44:45.994: E/MapActivity(3026): Couldn't get connection factory client 10-31 15:47:42.319: ERROR/MapView(1773): java.lang

Find Long/Lat inside of polygon with MySQL 5.6

天大地大妈咪最大 提交于 2019-12-20 05:39:16
问题 I have a locations table that has many rows of locations and data. There are 2 columns inside of that - Longitude and Latitude. I want to find records from that table that are found in a defined map polygon area. I have a second table that I just created based on some tutorials called polyThing which has my defined boundary... CREATE TABLE polyThing ( `ID` int auto_increment primary key, `boundary` polygon not null, `testarea` varchar(200) NOT NULL ); INSERT INTO polyThing (boundary, testarea

Location is not getting in samsung phone if GPS is disabled

。_饼干妹妹 提交于 2019-12-20 05:15:20
问题 I use samsung phone to get location through LocationManager API, i'm unable to get location if GPS is disabled, through network provider i'm unable to get the location. Here is the code, this works well in HTC & sony even disabling GPS but not in Samsung phone. public Location getLocation() { try { mLocationManager = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE); // getting GPS status isGPSEnabled = mLocationManager .isProviderEnabled(LocationManager.GPS_PROVIDER); //

Update GPS Listener every 5 seconds

喜欢而已 提交于 2019-12-20 05:10:10
问题 I'm supposed to update the listener every 5 seconds. But it doesn't. What could be wrong with my code? Thanks a lot for any help! package com.example.android.lbs; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.sql.Date; import java.text.SimpleDateFormat; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os

How to convert GPS coordinates to decimal in Lua?

空扰寡人 提交于 2019-12-20 04:57:16
问题 I need to convert GPS coordinates from WGS84 to decimal using Lua. I am sure it's been done before, so I am looking for a hint to a code snippet. corrected question: Code to convert DMS (Degress Minutes Seconds) to DEG ((decimal) Degrees) in Lua? examples: Vienna: dms: 48°12'30" N 16°22'28" E or Zurich: dms: 47°21'7" N 8°30'37" E The difficulty I find is to get the numbers out of these strings. Especially how to handle the signs for degree (°) minutes (') and seconds ("). So that I would have