package com.alfeye.powerdemo; import android.app.Service; import android.content.Intent; import android.os.IBinder; import com.alfeye.a1io.DeviceControl; public class MyService extends Service { public MyService() { } @Override public IBinder onBind(Intent intent) { // TODO: Return the communication channel to the service. throw new UnsupportedOperationException("Not yet implemented"); } @Override public void onCreate() { super.onCreate(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { DeviceControl.sendInformationScreen(this, false); try { Thread.sleep(3000); } catch (InterruptedException e) { e.printStackTrace(); } DeviceControl.sendInformationScreen(this, true); return super.onStartCommand(intent, flags, startId); } }