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.achep.acdisplay.services.BathService.java

/**
 * Created by achep on 26.05.14.
 *
 * @author Artem Chepurnoy
 */
// THIS CAN BE NOT SAFE!!!

From source file net.ccghe.emocha.services.ServerService.java

public class ServerService extends Service {
    private static final long INTERVAL_CALL_SERVER = 30 * Constants.ONE_SECOND;
    private static final long INTERVAL_DOWNLOAD = 5 * Constants.ONE_SECOND;
    private static FileTransmitter fileTransmitter;
    private Timer serverTimer = new Timer();
    private Handler handler = new Handler();

From source file com.idlegandalf.ledd.services.ColorService.java

public class ColorService extends Service {
    private static ScheduledThreadPoolExecutor poolExecutor = new ScheduledThreadPoolExecutor(5);
    private final IBinder mBinder = new ColorBinder();
    private LinkedBlockingQueue<Sendable> queue;
    private Worker<Sendable> worker;

From source file org.droidkit.app.UpdateService.java

/**
 * Provides an easy over the air update service for applications that are not distributed via
 * any marketplace. If your application is used in a market of some kind this is not a recommended
 * service.
 * 
 * @version 1

From source file com.commonsware.android.webserver.websockets.WebServerService.java

public class WebServerService extends Service implements Runnable {
    private AsyncHttpServer server;
    final private ArrayList<WebSocket> sockets = new ArrayList<WebSocket>();
    final private ScheduledExecutorService timer = Executors.newSingleThreadScheduledExecutor();

    @Override

From source file org.wso2.iot.agent.services.location.LocationService.java

/**
 * This class holds the function implementations of the location service.
 */
public class LocationService extends Service implements LocationListener {

    private static final String TAG = LocationService.class.getSimpleName();

From source file net.texh.cordovapluginstepcounter.StepCounterService.java

public class StepCounterService extends Service implements SensorEventListener {

    private final String TAG = "StepCounterService";
    private IBinder mBinder = null;
    private static boolean isRunning = false;

From source file com.android.gallery3d.ingest.IngestService.java

/**
 * Service for MTP importing tasks.
 */
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)
public class IngestService extends Service
        implements ImportTask.Listener, MtpDeviceIndex.ProgressListener, MtpClient.Listener {

From source file ack.me.truconnectandroiddemo.TruconnectService.java

public class TruconnectService extends Service {
    public static final String ACTION_SCAN_RESULT = "ACTION_SCAN_RESULT";
    public static final String ACTION_CONNECTED = "ACTION_CONNECTED";
    public static final String ACTION_DISCONNECTED = "ACTION_DISCONNECTED";
    public static final String ACTION_MODE_WRITE = "ACTION_MODE_WRITE";
    public static final String ACTION_MODE_READ = "ACTION_MODE_READ";

From source file com.dsdar.thosearoundme.location.LocationUpdates.java

/**
 * Class to get users current location and update to server
 *
 * @author senthil_kumaran
 */
public class LocationUpdates extends Service implements GoogleApiClient.ConnectionCallbacks,