摘要:
1:定义一个服务类,在服务类中使用AlarmManager 来管理服务的运行public class WtacService extends Service{ private AlarmManager alarmManager = null; private PendingIntent alarmIntent = null; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onCreate() { ... 阅读全文