SmsManager succes
<p>I'm using the following code to send an sms. But this seems to not generate an exception when an sms is not send. For instance when there's not enough money left to send it, I still go to smsSucces(); Does anyone kow a way to solve this for knowing sure it has been sent?</p>

<pre><code>    private boolean composeSms(String telefoonnr, String boodschap) {
    if(telefoonnr.equals("") || boodschap.equals(""))   {
        smsFail();
        return false;
    }
    try {
    SmsManager sm =  SmsManager.getDefault();
    //PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, SmsActivity.class), 0);   
    sm.sendTextMessage(telefoonnr, null, boodschap, null, null);
    DataClass dc = (DataClass) getApplicationContext();
    dc.setBoolean(DataClass.ACTIVATED_SMS, true);
    dc.setString(DataClass.SMS_NUMBER, telefoonnr);
    Log.d("temp","sms send succesfully");
    smsSucces();
    return true;
    }
    catch (Exception e) {
        e.printStackTrace();
        smsFail();
        return false;
    }


}
</code></pre>
