VMBackgroundService.java 857 B

12345678910111213141516171819202122232425262728293031
  1. package com.vmloft.develop.daemon.services;
  2. import android.app.Service;
  3. import android.content.Intent;
  4. import android.os.IBinder;
  5. import android.util.Log;
  6. /**
  7. * 普通的后台 Service 服务,此类只是为了展示正常服务进程的优先级
  8. *
  9. * Created by lzan13 on 2017/3/7.JobScheduler机制唤醒
  10. */
  11. public class VMBackgroundService extends Service {
  12. private final static String TAG = VMBackgroundService.class.getSimpleName();
  13. @Override public void onCreate() {
  14. Log.i(TAG, "onCreate");
  15. super.onCreate();
  16. }
  17. @Override public IBinder onBind(Intent intent) {
  18. // TODO: Return the communication channel to the service.
  19. throw new UnsupportedOperationException("onBind 未实现");
  20. }
  21. @Override public void onDestroy() {
  22. Log.i(TAG, "onDestroy");
  23. super.onDestroy();
  24. }
  25. }