Android的:如何让网络坐标不用其他的谷歌帐户signining起来 [英] Android: how to get network coordinates witout signining up in google account

查看:252
本文介绍了Android的:如何让网络坐标不用其他的谷歌帐户signining起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些Android设备远离我。我有自己的应用程序和它的根远程访问。该应用程序可以给我设备的GPS通过互联网坐标。但是,如果设备在谷歌帐户注册才有效。远程设备都没有。
所以,我怎么可以远程注册(采用了android扎根壳,或某些应用程序)或获取GPS坐标没有注册?

I have some android devices remote from me. And I have own app and root remote access on it. The app can give me devices' GPS coordinates via internet. But It works only if device is signed up in google account. Remote devices are not. So how I can sign up remotely(using android rooted shell, or some app) or get GPS coordinates without signing up?

推荐答案

我不知道你在哪里,或其他用户从获得的数据,但有没有必要谷歌帐户来获得位置。

I'm not sure where you or the other user are getting your data from, but there's no need for Google account to get location.

有一个简单的一步一步的把它做 https://开头developer.android.com/training/location/receive-location-updates.html 并没有地方说,关于谷歌帐户的任何事情。

There's a simple step by step to get it done https://developer.android.com/training/location/receive-location-updates.html and no where it says anything about Google account.

如果您想使用FusedLocationProvider(按链接),设备必须具有谷歌播放上安装服务。这是一个自动由谷歌上有谷歌Play商店的所有设备上安装的应用程序。

If you want to use the FusedLocationProvider (as per link) the device must have Google Play Services installed on it. That's an app that is automatically installed by Google on all devices that have Google Play Store.

如果您的设备不具备谷歌播放安装商店,那么你必须使用的LocationManager https://developer.android.com/reference/android/location/LocationManager.html 通过调用这个code:

If your devices does not have Google Play Store installed then you must use the LocationManager https://developer.android.com/reference/android/location/LocationManager.html by calling this code:

LocationManager lm =
     (LocationManager) context.getSystemServices(Context.LOCATION_SERVICE);

和制作relevat上的流明实例调用接收位置更新。

and making the relevat calls on the lm instance to receive location updates.

这两种方法都需要定位权限在的Andr​​oidManifest.xml ,但没有需要用户拥有一个谷歌帐户。

Both methods need location permissions on your AndroidManifest.xml but none needs the user to have a Google Account.

这篇关于Android的:如何让网络坐标不用其他的谷歌帐户signining起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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