PollService.java :  » Client » nagroid » de » schoar » nagroid » service » Android Open Source

Android Open Source » Client » nagroid 
nagroid » de » schoar » nagroid » service » PollService.java
package de.schoar.nagroid.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import de.schoar.nagroid.DM;

public class PollService extends Service {

  @Override
  public IBinder onBind(Intent arg0) {
    return null;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    DM.register(this);
  }

  @Override
  public void onStart(Intent intent, int startId) {
    super.onStart(intent, startId);
    DM.I.getPollHandler().poll();
  }

  @Override
  public void onDestroy() {
    super.onDestroy();
    DM.unregister(this);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.