Example usage for android.app IntentService getBaseContext

List of usage examples for android.app IntentService getBaseContext

Introduction

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

Prototype

public Context getBaseContext() 

Source Link

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);
}