如何唯一识别Android设备? [英] How To Uniquely Identify An Android Device?

查看:123
本文介绍了如何唯一识别Android设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个应用程序(服务器Android客户端),允许用户从多个Android设备登录。当用户登录的设备上,该设备将被登记在服务器端,但我不知道如何避免重复的,所以我想知道这是否有任何机会,以唯一识别Android设备?我认为,谷歌播放和Facebook能够做到这一点。

I was working on an app (server-android client) that allow user to sign in from multiple android devices. When user logged in on a device, that device will be registered on server side, but I don't know how to avoid duplicate, so I was wondering that are there any chances to uniquely identify an android device? I think Google Play and Facebook can do that.

推荐答案

有几个可用的选项,但目前还没有100%的保证,他们将始终工作。看到Android开发者博客文章:的http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

There are several options available, but there is no 100% guarantee that they will always work. See the android developer blog post: http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

提到的最好的方法是 Settings.Secure.ANDROID_ID

这篇关于如何唯一识别Android设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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