FileDocCategorySizeDatePackage
SchedulerService.javaAPI DocAndroid 5.1 API1711Thu Mar 12 22:22:42 GMT 2015com.android.frameworkperf

SchedulerService

public class SchedulerService extends android.app.Service

Fields Summary
Constructors Summary
Methods Summary
public android.os.IBinderonBind(android.content.Intent intent)

        // TODO Auto-generated method stub
        return null;
    
public intonStartCommand(android.content.Intent intent, int flags, int startId)

        Notification status = new Notification(R.drawable.stat_happy, null,
                System.currentTimeMillis());
        status.flags |= Notification.FLAG_ONGOING_EVENT;
        status.setLatestEventInfo(this, "Scheduler Test running",
                "Scheduler Test running", PendingIntent.getActivity(this, 0,
                    new Intent(this, FrameworkPerfActivity.class)
                    .setAction(Intent.ACTION_MAIN)
                    .addCategory(Intent.CATEGORY_LAUNCHER)
                    .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0));
        startForeground(1, status);
        return START_STICKY;