Skip to content

Instantly share code, notes, and snippets.

@jyaunches
Created September 27, 2012 18:29
Show Gist options
  • Save jyaunches/3795572 to your computer and use it in GitHub Desktop.
Save jyaunches/3795572 to your computer and use it in GitHub Desktop.
public class MessagingActivity implements SendMessageCallbacks extends Activity {
//activity setup methods
public void sendMessage(){
new SendMessageTask(httpClient, this).execute();
}
@Override
protected void onMessageSendingFailed(String reason) {
//To something
}
@Override
protected void onMessageSendingSuccess(String reason) {
//To something else
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment