Posted by
sapan
on
- Get link
- Other Apps
appCompatActivity.runOnUiThread(new Runnable() { @Override public void run() { new SweetAlertDialog(appCompatActivity, SweetAlertDialog.ERROR_TYPE) .setTitleText("Oops...") .setContentText(error) .show(); } });
new Thread(new Runnable() { @Override public void run() { uiAlerts.UIshowProgress(); try { uiAlerts.UIhideProgress(); uiAlerts.UIshowSuccess("Data sucessfully synced"); }catch (Exception e) { uiAlerts.UIhideProgress(); uiAlerts.UIshowError("Sync fail please try again"); e.printStackTrace(); } } }).start();
Comments
Post a comment