Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String c() {
- final WifiManager wifiManager = (WifiManager)this.getSystemService("wifi");
- WifiInfo connectionInfo;
- if (wifiManager == null) {
- connectionInfo = null;
- }
- else {
- connectionInfo = wifiManager.getConnectionInfo();
- }
- String s;
- if (connectionInfo != null) {
- s = connectionInfo.getMacAddress();
- if (s != null) {
- s = "8c0f" + s.replaceAll(":", "");
- }
- }
- else {
- s = null;
- }
- return s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement