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).
runOnUiThread(Runnable)
For example: @Override public void onSendingSuccess() { runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(this,"Sending finished successfully",30).show(); } }); }
For example:
@Override
public void onSendingSuccess() {
runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(this,"Sending finished successfully",30).show(); } });
}
There was an error while loading. Please reload this page.