Skip to content
uncleLem edited this page Nov 26, 2012 · 2 revisions

Use this class "as is", if you want to post messages in background.

Override some of these methods if you want to add interaction with UI.

In this case, you have to run this methods in UI thread by using runOnUiThread(Runnable).

For example:

@Override

public void onSendingSuccess() {

runOnUiThread(new Runnable() {
    @Override
    public void run() {
        Toast.makeText(this,"Sending finished successfully",30).show();
    }
});

}

Clone this wiki locally