File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed 
java/com/aaxena/takenotes Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 44import  android .content .Intent ;
55import  android .graphics .Color ;
66import  android .net .Uri ;
7+ import  android .os .Build ;
78import  android .os .Bundle ;
89import  android .os .Handler ;
910import  android .os .Vibrator ;
1011import  android .view .View ;
1112import  android .widget .Button ;
13+ import  android .widget .TextView ;
1214import  android .widget .Toast ;
1315
1416import  androidx .appcompat .app .AppCompatActivity ;
@@ -29,6 +31,11 @@ protected void onCreate(Bundle savedInstanceState) {
2931    }
3032
3133    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 );
3239        Button  share =findViewById (R .id .share );
3340        share .setOnClickListener (v  -> {
3441            Vibrator  v2  = (Vibrator ) getSystemService (Context .VIBRATOR_SERVICE );
Original file line number Diff line number Diff line change 8787                android : text =" @string/take_notes_journey" 
8888                android : textColor =" @color/ic_launcher_background" 
8989
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" 
91100        </LinearLayout >
92101    </ScrollView >
93102
Original file line number Diff line number Diff line change 8686    <string  name =" tap_to_save_name" string >
8787    <string  name =" rename_file_name" string >
8888    <string  name =" save_name" string >
89+     <string  name =" device_id" string >
8990</resources >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments