Example usage for android.app Service stopSelf

List of usage examples for android.app Service stopSelf

Introduction

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

Prototype

public final void stopSelf(int startId) 

Source Link

Document

Old version of #stopSelfResult that doesn't return a result.

Usage

From source file:com.parse.GCMService.java

/**
 * Stop the parent Service, if we're still running.
 *//*from w  ww .j  a v a  2s .c  o m*/
private void stopParent(int startId) {
    Service p = parent.get();
    if (p != null) {
        p.stopSelf(startId);
    }
}