Example usage for android.app IntentService getApplication

List of usage examples for android.app IntentService getApplication

Introduction

In this page you can find the example usage for android.app IntentService getApplication.

Prototype

public final Application getApplication() 

Source Link

Document

Return the application that owns this service.

Usage

From source file:com.ui.UiActivity.java

public void startIntentServiceActivity(IntentService intentService, Intent intent, Class<?> zls) { // intent service   
    intent.setClass(intentService.getBaseContext(), zls);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    intentService.getApplication().startActivity(intent);
}