Android Open Source - feedburnerdailystats Fds App






From Project

Back to project page feedburnerdailystats.

License

The source code is released under:

Apache License

If you think the Android project feedburnerdailystats listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.isolation.fds;
/*from   ww w . j  av a2  s.  c  o m*/
import android.app.Application;
import android.content.Intent;

public class FdsApp extends Application {
  private FeedburnerDailyStatsService service;
  private Intent intent;
  private String latestDay = "0";

  public FeedburnerDailyStatsService getService() {
    return service;
  }

  public void setService(FeedburnerDailyStatsService service) {
    this.service = service;
  }

  public Intent getIntent() {
    return intent;
  }

  public void setIntent(Intent intent) {
    this.intent = intent;
  }

  public String getLatestDay() {
    return latestDay;
  }

  public void setLatestDay(String latestDay) {
    this.latestDay = latestDay;
  }

  public void startNotificationService() {
    if (getIntent() == null) {
      latestDay = "0";
      Intent svc = new Intent(this, FeedburnerDailyStatsService.class);
      startService(svc);
      setIntent(svc);
    }
  }
  
  public void stopNotificationService() {
        if (getIntent() != null) {
      stopService(getIntent());
      setIntent(null);
    }
  }
  
}




Java Source Code List

de.isolation.fds.FdsApp.java
de.isolation.fds.FeedburnerDailyStatsActivity.java
de.isolation.fds.FeedburnerDailyStatsService.java