java - How to send bulk SMS with ProgressDialog in Android Studio? -
here problems :
i know how send sms, i'm using in loop like this, , know it's not send sms, i'd add delay (i.e. 1000 milliseconds). how ?
i'd use progressdialog show progress of sending sms. know i've use thread or asynctask this. don't find working code...
for moment, i've code, doesn't work :
button sendbutton = (button) findviewbyid(r.id.sendbutton); sendbutton.setonclicklistener(new button.onclicklistener() { @override public void onclick(view v) { if (!studentlist.isempty()) { (int = 0; < studentlist.size(); i++) { student currentstudent = studentlist.get(i); currentstudent.sendsms(); } } else { toast.maketext(getapplicationcontext(), "the list empty.", toast.length_short).show(); } } });
if need more information, not hesitate.
i'd have working sample code...
beginner in java , android development, remember how difficult start, please indulgent !
regards, drarig29.
Comments
Post a Comment