File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ stackoverflow-Java-top-qa
63
63
64
64
> Android
65
65
* [ 在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 )
67
67
68
68
### 待翻译问题链接(还剩x问题)
69
69
- [ 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 )
Original file line number Diff line number Diff line change 1
- ##如何取得android唯一码 ?
1
+ ##如何获取Android设备唯一ID ?
2
2
3
3
###问题
4
- 每一个android装置都有唯一ID吗 ?如果有?怎么用java最简单取得呢?
4
+ 每一个android设备都有唯一ID吗 ?如果有?怎么用java最简单取得呢?
5
5
6
6
###回答1(最佳)
7
7
8
8
如何取得android唯一码?
9
+
9
10
好处:
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之后仍能取得相同唯一值.
13
14
14
15
伪代码:
15
16
@@ -64,11 +65,11 @@ return unique ID of build information (may overlap data - API < 9)
64
65
```
65
66
###回答2
66
67
好处:
67
- 1.不需要特定权限.
68
- 2.在100% Android装置(包括root过的)上,保证唯一性.
68
+ - 1.不需要特定权限.
69
+ - 2.在100% Android装置(包括root过的)上,保证唯一性.
69
70
70
71
坏处
71
- 1.重装app之后不能取得相同唯一值.
72
+ - 1.重装app之后不能取得相同唯一值.
72
73
73
74
``` java
74
75
private static String uniqueID = null ;
You can’t perform that action at this time.
0 commit comments