I want the notifications "Error Submitting Code" to appear when there is error executing the process. How should I edit my code?
Thank you in advance.
String link = "http://ift.tt/2AK7Xnk";
new SubmitData().execute(link);
if ( getActivity().execute(link) == true) {
Toast.makeText(getActivity(), "Code Submit Successfully", Toast.LENGTH_LONG).show();
}
else {
Toast.makeText(getActivity(), "Error Submitting Code", Toast.LENGTH_LONG).show();
}
Aucun commentaire:
Enregistrer un commentaire