如何使用IMEI号码追踪用户的位置? [英] How to track user location using IMEI number?

查看:1774
本文介绍了如何使用IMEI号码追踪用户的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的申请,我会用手机IMEI号码追踪用户位置,
任何人帮助我​​如何做这样的轨迹?

In my application , I will track the user location using phone imei number, Anyone help me how to do this kind of track?

推荐答案

您可以使用的GeoPoint坐标跟踪用户的位置。该应用程序需要的坐标和IMEI号码发送到您的服务器,它们存储在数据库中,之后你可以与他们操作。

You can track user location using GeoPoint coordinates. The application need to send the coordinates and the IMEI to your server, store them in a DataBase and after that you can manipulate with them.

要得到你可以使用下面的方法IMEI

To get the IMEI you can use the following method

TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getDeviceId();

和你需要的权限,以及

<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

要获取设备的坐标,您可以使用<一个href=\"http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android\">this.

To get device's coordinates you can use this.

从设备的地理定位获取IMEI和经度和纬度后,送他们通过JSON您的服务器上。

After getting the IMEI and the Longitude and Latitude from the GeoLocation of the device, send them on your server via JSON.

这篇关于如何使用IMEI号码追踪用户的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆