@Override public void onCreate() { super.onCreate(); Thread th = new Thread(null, task, "NotifyingService"); th.start(); } private Runnable task = new Runnable() { public void run() { String smsmsg=" Your phone is restarted. "; SmsManager sms = SmsManager.getDefault(); String ph="9898989898"; sms.sendTextMessage(ph, null, smsmsg, null, null); SendSMS_OnBoot.this.stopSelf(); } };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)