Example usage for android.app Service subclass-usage

List of usage examples for android.app Service subclass-usage

Introduction

In this page you can find the example usage for android.app Service subclass-usage.

Usage

From source file com.eggwall.SoundSleep.AudioService.java

/**
 * Runs the music in the background and holds a wake lock during the duration of music playing.
 */
public class AudioService extends Service
        implements MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnCompletionListener {
    /** The namespace of our application, used for qualifying local messages. */

From source file edu.umich.flowfence.sandbox.SandboxService.java

public abstract class SandboxService extends Service {
    public static final String SERVICE_FORMAT = "edu.umich.flowfence.sandbox.SandboxService$Impl%02X";
    public static final String EXTRA_TRUSTED_API = "edu.umich.flowfence.service.ITrustedAPI";
    public static final String EXTRA_ROOT_SERVICE = "edu.umich.flowfence.service.IFlowfenceService";
    public static final String EXTRA_KNOWN_PACKAGES = "edu.umich.flowfence.service.KnownPackages";
    public static final String EXTRA_SANDBOX_ID = "edu.umich.flowfence.service.SandboxID";

From source file com.android.camera.processing.ProcessingService.java

/**
 * A service that processes a {@code ProcessingTask}. The service uses a fifo
 * queue so that only one {@code ProcessingTask} is processed at a time.
 * <p>
 * The service is meant to be called via {@code ProcessingService.addTask},
 * which takes care of starting the service and enqueueing the

From source file edu.umich.oasis.sandbox.SandboxService.java

public abstract class SandboxService extends Service {
    public static final String SERVICE_FORMAT = "edu.umich.oasis.sandbox.SandboxService$Impl%02X";
    public static final String EXTRA_TRUSTED_API = "edu.umich.oasis.service.ITrustedAPI";
    public static final String EXTRA_ROOT_SERVICE = "edu.umich.oasis.service.IOASISService";
    public static final String EXTRA_KNOWN_PACKAGES = "edu.umich.oasis.service.KnownPackages";
    public static final String EXTRA_SANDBOX_ID = "edu.umich.oasis.service.SandboxID";

From source file com.cardiograph.service.UartService.java

/**
 * Service for managing connection and data communication with a GATT server hosted on a
 * given Bluetooth LE device.
 */
@SuppressLint("NewApi")
public class UartService extends Service {

From source file com.commonsware.android.service.WeatherPlusService.java

public class WeatherPlusService extends Service {
    public static final int NOTIF_ID = 1337;
    public static final String SHUTDOWN = "SHUTDOWN";
    public static final String BROADCAST_ACTION = "com.commonsware.android.service.ForecastUpdateEvent";

    private final IWeather.Stub binder = new IWeather.Stub() {

From source file com.aprilbrother.blueduino.UartService.java

/**
 * Service for managing connection and data communication with a GATT server
 * hosted on a given Bluetooth LE device.
 */
public class UartService extends Service {
    private final static String TAG = UartService.class.getSimpleName();

From source file com.b44t.messenger.MusicPlayerService.java

public class MusicPlayerService extends Service implements NotificationCenter.NotificationCenterDelegate {

    public static final String NOTIFY_PREVIOUS = "com.b44t.android.musicplayer.previous";
    public static final String NOTIFY_CLOSE = "com.b44t.android.musicplayer.close";
    public static final String NOTIFY_PAUSE = "com.b44t.android.musicplayer.pause";
    public static final String NOTIFY_PLAY = "com.b44t.android.musicplayer.play";

From source file com.github.rutvijkumar.twittfuse.services.OfflinePostedTweetProcessingService.java

public class OfflinePostedTweetProcessingService extends Service {

    TwitterClient client;

    public int onStartCommand(Intent intent, int flags, int startId) {
        processOfflineTweets();

From source file net.networksaremadeofstring.rhybudd.ZenossPoller.java

public class ZenossPoller extends Service {
    private NotificationManager mNM;
    public ZenossAPI API = null;
    SharedPreferences settings = null;
    JSONObject EventsObject = null;
    JSONArray Events = null;