I have 4 Activity. the first being the login activity and the 4th being the user sends the data to the server. Now what I want to do is when the data is sent successfully,i wan the user to move to activity 2 from activity 4. How can i acheive this scenario.
I need to implement this handleSuccessSaveOrder() which will take me from 4th to 2nd activity
private void saveOrder(final Order order) {
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
try {
getConnection().saveOrder(order);
//handleSuccessSaveOrder();
}
catch (Exception exc) {
Log.d("--- ERROR ---", exc.getMessage());
handleException(exc.getMessage());
}
}
});
thread.start();
}
In the end of your
handleSuccessSaveOrder(), do as follow: