做Android手机已经在连接到3G的MAC地址? [英] Do Android Phones have a MAC address when connected to 3G?

查看:145
本文介绍了做Android手机已经在连接到3G的MAC地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果在连接​​到互联网,通过3G Android手机有一个MAC地址?我假设他们这样做,所以我想我真正的问题是,是否有访问它的呢?我还没有从通过API的寻找或谷歌搜索发现什么,但也许我错过了什么。

I was wondering if Android phones have a MAC address when connected to the internet over 3G? I'm assuming they do, so I guess my real question is whether or not there is anyway of accessing it? I haven't found anything from looking through the APIs or by googling, but maybe I missed something.

在此先感谢

推荐答案

MAC地址是特定于实现IEEE 802标准的网络技术,如以太网。 3G是不是一个IEEE 802网络,所以MAC地址确实犯规适用。

MAC address is specific to network technologies that implement the IEEE 802 standard, such as ethernet. 3G is not an IEEE 802 network, so MAC address really doesnt apply.

这是说,应该有你的应用程序使用的MAC地址,除非您选择写网络驱动程序或做一些具体的事情与TCP / IP网络非常少的原因。

That said, there should be very few reasons to use the MAC address in your app, unless youre writing a network driver or doing something specific with the TCP/IP network.

人们往往达到MAC地址,认为它重新presents一个唯一的设备ID,当你真的应该使用类似的http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID获得一个唯一的ID将在所有不同的硬件组合为Android,其中一些可能包括不IEE 802网络的任何工作。

Often people reach for MAC address thinking that it represents a unique device id, when really you should use something like http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID to get a unique id that will work across all of the different hardware combinations for android, some of which might include no IEE 802 network whatsoever.

这篇关于做Android手机已经在连接到3G的MAC地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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