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.adstrosoftware.notificationcompass.CompassService.java

public class CompassService extends Service implements SensorEventListener {
    private static final int NOTIFICATION_ID = 1337;
    private static final String TAG = "CompassService";
    private static final int NORTH = 0;
    private static final int NORTH_EAST = 45;
    private static final int NORTH_WEST = -45;

From source file com.damageddev.myotaskerplugin.services.BackgroundService.java

public final class BackgroundService extends Service {
    public static final int NOTIFICATION_ID = 6592;

    public static final String ACTION_DISCONNECT = "com.damageddev.myotaskerplugin.ACTION_DISCONNECT";
    public static final String ACTION_CONNECT = " com.damageddev.myotaskerplugin.ACTION_CONNECT";

From source file com.chalmers.feedlr.service.DataService.java

/**
 * The DataService class handles requests, response parsing and database storage
 * of client data. On call from an Activity the service makes the necessary
 * requests to client APIs, parses the received JSON response and stores all
 * relevant data to the application database. When a complete request has been
 * made and all data has successfully been saved to the database a broadcast is

From source file com.embedded.dgu.crimenotifier.MyRecoBackgroundMonitoringService.java

/**
 * RECOBackgroundMonitoringService is to monitor regions in the background.
 *
 * RECOBackgroundMonitoringService ?? monitoring? .
 */
public class MyRecoBackgroundMonitoringService extends Service

From source file cc.softwarefactory.lokki.android.androidServices.LocationService.java

public class LocationService extends Service implements LocationListener, GoogleApiClient.ConnectionCallbacks,
        GoogleApiClient.OnConnectionFailedListener {

    // INTERVALS
    /**
     * Location polling interval when the service is set to get high accuracy updates (App running in foreground)

From source file de.hero.vertretungsplan.CheckForAppUpdate.java

public class CheckForAppUpdate extends Service {
    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        boolean setTimer = intent.getBooleanExtra("setTimer", false);
        boolean checkNow = intent.getBooleanExtra("checkNow", false);

From source file com.piusvelte.sonet.core.PhotoUploadService.java

public class PhotoUploadService extends Service {
    private static final String TAG = "PhotoUploadService";
    private SonetCrypto mSonetCrypto;
    private int mStartId = Sonet.INVALID_SERVICE;

    @Override

From source file com.android.settings.cyanogenmod.LtoService.java

public class LtoService extends Service {
    private static final String TAG = "LtoService";
    private static final boolean ALOGV = true;

    private static final String KEY_LAST_DOWNLOAD = "lto_last_download";

From source file edu.stanford.junction.sample.partyware.ImgurUploadService.java

public class ImgurUploadService extends Service {
    private static final String THUMBNAIL_POSTFIX = ".thumb.jpg";
    private static final int PROGRESS_UPDATE_INTERVAL_MS = 250;
    private static final int CHUNK_SIZE = 9000;
    private static final int READ_BUFFER_SIZE_BYTES = (3 * CHUNK_SIZE) / 4;
    private static final String[] API_KEYS = { "4e219fc7820b0d6ab44f3237fe7ca04f",

From source file com.a3did.partner.recosample.RecoBackgroundMonitoringService.java

/**
 * RECOBackgroundMonitoringService is to monitor regions in the background.
 *
 * RECOBackgroundMonitoringService ?? monitoring? .
 */
public class RecoBackgroundMonitoringService extends Service