File tree 3 files changed +18
-1
lines changed
java/com/aaxena/takenotes
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 4
4
import android .content .Intent ;
5
5
import android .graphics .Color ;
6
6
import android .net .Uri ;
7
+ import android .os .Build ;
7
8
import android .os .Bundle ;
8
9
import android .os .Handler ;
9
10
import android .os .Vibrator ;
10
11
import android .view .View ;
11
12
import android .widget .Button ;
13
+ import android .widget .TextView ;
12
14
import android .widget .Toast ;
13
15
14
16
import androidx .appcompat .app .AppCompatActivity ;
@@ -29,6 +31,11 @@ protected void onCreate(Bundle savedInstanceState) {
29
31
}
30
32
31
33
private void init () {
34
+
35
+ String product = Build .PRODUCT ;
36
+ String model = Build .MODEL ;
37
+ TextView model_display = findViewById (R .id .unique_id_model );
38
+ model_display .setText (getString (R .string .device_id )+ product +"-TN-" + model );
32
39
Button share =findViewById (R .id .share );
33
40
share .setOnClickListener (v -> {
34
41
Vibrator v2 = (Vibrator ) getSystemService (Context .VIBRATOR_SERVICE );
Original file line number Diff line number Diff line change 87
87
android : text =" @string/take_notes_journey"
88
88
android : textColor =" @color/ic_launcher_background" />
89
89
90
-
90
+ <TextView
91
+ android : id =" @+id/unique_id_model"
92
+ android : layout_width =" match_parent"
93
+ android : layout_height =" wrap_content"
94
+ android : layout_marginTop =" 20dp"
95
+ android : layout_marginBottom =" 20dp"
96
+ android : fontFamily =" @font/productsans"
97
+ android : textAlignment =" center"
98
+ android : textColor =" @color/colorAccent"
99
+ android : textSize =" 15sp" />
91
100
</LinearLayout >
92
101
</ScrollView >
93
102
Original file line number Diff line number Diff line change 86
86
<string name =" tap_to_save_name" >Tap here to save your default file name</string >
87
87
<string name =" rename_file_name" >Rename File Name</string >
88
88
<string name =" save_name" >Save</string >
89
+ <string name =" device_id" >Device ID: </string >
89
90
</resources >
You can’t perform that action at this time.
0 commit comments