예제 #1
0
    @Override
    protected void onPostExecute(String s) {
      pd.dismiss();
      try {
        if (s.equalsIgnoreCase("y")) {
          MyApp.tracker().setScreenName("Feedback Screen");
          MyApp.tracker()
              .send(
                  new HitBuilders.EventBuilder("Button", "Click")
                      .setCategory("UI")
                      .setAction("Click")
                      .setLabel("Submit")
                      .build());

          finish();
          Toast.makeText(
                  getApplicationContext(),
                  "Your message has been sent to SYT customer support team.",
                  Toast.LENGTH_LONG)
              .show();
        } else {
          finish();
        }
      } catch (Exception e) {
        e.printStackTrace();
      } finally {

      }
    }
예제 #2
0
 @Override
 protected void onPreExecute() {
   pd.show();
 }