Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c940bc0

Browse filesBrowse files
committed
优化“如何获取Android设备唯一ID”
1 parent 6d3b756 commit c940bc0
Copy full SHA for c940bc0

File tree

Expand file treeCollapse file tree

2 files changed

+10
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-9
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ stackoverflow-Java-top-qa
6363

6464
> Android
6565
* [在Android里面下载文件,并在ProgressDialog显示进度](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/Download_a_file_with_Android_and_showing_the_progress_in_a_ProgressDialog.md)
66-
* [如何取得android唯一码?](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/is-there-a-unique-android-device-id.md)
66+
* [如何获取Android设备唯一ID](https://github.com/giantray/stackoverflow-java-top-qa/blob/master/contents/is-there-a-unique-android-device-id.md)
6767

6868
### 待翻译问题链接(还剩x问题)
6969
- [Why is subtracting these two times (in 1927) giving a strange result?](http://stackoverflow.com/questions/6841333/why-is-subtracting-these-two-times-in-1927-giving-a-strange-result)

‎contents/is-there-a-unique-android-device-id.md

Copy file name to clipboardExpand all lines: contents/is-there-a-unique-android-device-id.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
##如何取得android唯一码
1+
##如何获取Android设备唯一ID
22

33
###问题
4-
每一个android装置都有唯一ID吗?如果有?怎么用java最简单取得呢?
4+
每一个android设备都有唯一ID吗?如果有?怎么用java最简单取得呢?
55

66
###回答1(最佳)
77

88
如何取得android唯一码?
9+
910
好处:
10-
1.不需要特定权限.
11-
2.在99.5% Android装置(包括root过的)上,即API => 9,保证唯一性.
12-
3.重装app之后仍能取得相同唯一值.
11+
- 1.不需要特定权限.
12+
- 2.在99.5% Android装置(包括root过的)上,即API => 9,保证唯一性.
13+
- 3.重装app之后仍能取得相同唯一值.
1314

1415
伪代码:
1516

@@ -64,11 +65,11 @@ return unique ID of build information (may overlap data - API < 9)
6465
```
6566
###回答2
6667
好处:
67-
1.不需要特定权限.
68-
2.在100% Android装置(包括root过的)上,保证唯一性.
68+
- 1.不需要特定权限.
69+
- 2.在100% Android装置(包括root过的)上,保证唯一性.
6970

7071
坏处
71-
1.重装app之后不能取得相同唯一值.
72+
- 1.重装app之后不能取得相同唯一值.
7273

7374
```java
7475
private static String uniqueID = null;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.