Skip to content
Snippets Groups Projects
Commit 5da22996 authored by SubashNS's avatar SubashNS
Browse files

added trusted contacts edited

parent bfc20cca
Branches
No related tags found
No related merge requests found
...@@ -33,14 +33,27 @@ public class MainActivity extends AppCompatActivity { ...@@ -33,14 +33,27 @@ public class MainActivity extends AppCompatActivity {
public void onClick(View view){ public void onClick(View view){
Log.i("zz",""+choice); Log.i("zz",""+choice);
switch(choice) { switch(choice) {
case 0: startService(intent); case 0:
startService(intent);
count = shared.getInt("count", 0); count = shared.getInt("count", 0);
Log.d("COUNT", String.valueOf(count));
for (int i = 1; i <= count; i++) for (int i = 1; i <= count; i++)
{ {
n1 = sp.getString("value" + i, ""); n1 = sp.getString("value" + i, "");
n = sharedpreferences.getString(n1, ""); n = sharedpreferences.getString(n1, "");
Log.d("sub",n);
try
{
if(!(n.isEmpty()))
{
sendSMS(n, "Help Me!!!!"); sendSMS(n, "Help Me!!!!");
} }
}
catch (Exception e){}
}
break; break;
case 1: stopService(intent); case 1: stopService(intent);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment