File tree Expand file tree Collapse file tree 3 files changed +29
-8
lines changed
java/com/efraespada/stringobfuscator Expand file tree Collapse file tree 3 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,16 @@ protected void onCreate(Bundle savedInstanceState) {
2121 message += " is " ;
2222 message += SC .getString (stringId );
2323
24- // secret
24+ // secret var
2525 String mySecret = "lalilulelo" ;
2626
2727 message += "\n \n For Metal Gear lovers:\n \n \" Snake, the password is " + SC .encryptString (message )
2828 + "\n \n .. or " + SC .decryptString (SC .encryptString (mySecret )) + "\" " ;
2929
30- ((TextView ) findViewById (R .id .example )).setText (message );
30+ ((TextView ) findViewById (R .id .example_a )).setText (message );
31+
32+ String numbers = getString (R .string .test_a ) + " is " + SC .getString (R .string .test_a );
33+ ((TextView ) findViewById (R .id .example_b )).setText (numbers );
34+
3135 }
3236}
Original file line number Diff line number Diff line change 1111 android : background =" @android:color/background_light"
1212 tools : context =" com.efraespada.stringobfuscator.MainActivity" >
1313
14- <TextView
15- android : id =" @+id/example"
16- android : layout_width =" wrap_content"
14+ <LinearLayout
15+ android : layout_width =" match_parent"
1716 android : layout_height =" wrap_content"
18- android : layout_centerInParent =" true"
19- android : textColor =" @android:color/black"
20- android : text =" " />
17+ android : orientation =" vertical"
18+ android : layout_centerInParent =" true" >
19+
20+ <TextView
21+ android : id =" @+id/example_a"
22+ android : layout_width =" wrap_content"
23+ android : layout_height =" wrap_content"
24+ android : layout_gravity =" center_horizontal"
25+ android : textColor =" @android:color/black"
26+ android : text =" " />
27+
28+ <TextView
29+ android : id =" @+id/example_b"
30+ android : layout_width =" wrap_content"
31+ android : layout_height =" wrap_content"
32+ android : layout_gravity =" center_horizontal"
33+ android : textColor =" @android:color/black"
34+ android : text =" " />
35+
36+ </LinearLayout >
2137
2238
2339</RelativeLayout >
Original file line number Diff line number Diff line change 11<resources >
22 <string name =" hello" hidden =" true" >hello world!</string >
33 <string name =" app_name" >String Obfuscator Sample</string >
4+ <string name =" test_a" hidden =" true" >test (hi)</string >
45</resources >
You can’t perform that action at this time.
0 commit comments