return the status of sent sms

view story

http://stackoverflow.com – I have this class that i'm using to send SMS. I get a toast message to display the status. I want to return true or false if the SMS has been sent successfully or not. Tried using "delivered" for that but the code inside onReceive executes after sendSMS() returns. Please Give me an idea for this. public class SMSHandler extends Activity { private Context parentActivity; private Boolean delivered=false; public SMSHandler(Context activity) { // TODO Auto-generated constructor stub parentActivity=activity; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreat (HowTos)