package org.bbs.apklauncher.emb.auto_gen;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import android.app.Notification;
import android.app.Service;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.IBinder;
import android.util.Log;
public class Target_IntentService extends
//Service
ContextWrapper
//do NOT edit this file, auto-generated from Target_Service.java.template
{
private static final String TAG = Target_Service.class.getSimpleName();
public static final int START_CONTINUATION_MASK = Service.START_CONTINUATION_MASK;
public static final int START_STICKY_COMPATIBILITY = Service.START_STICKY_COMPATIBILITY;
public static final int START_STICKY = Service.START_STICKY;
public static final int START_NOT_STICKY = Service.START_NOT_STICKY;
public static final int START_REDELIVER_INTENT = Service.START_REDELIVER_INTENT;
public static final int START_FLAG_REDELIVERY = Service.START_FLAG_REDELIVERY;
public static final int START_FLAG_RETRY = Service.START_FLAG_RETRY;
private boolean mStartCompatibility;
StubBase_IntentService mHostService;
public StubBase_IntentService getHostService() {
return mHostService;
//do NOT edit this file, auto-generated from Target_Service.java.template
}
public Target_IntentService(){
super(null);
// mStartCompatibility = getApplicationInfo().targetSdkVersion
// < Build.VERSION_CODES.ECLAIR;
}
@Override
protected void attachBaseContext(Context base) {
mHostService = (StubBase_IntentService) base;
super.attachBaseContext(base);
}
public IBinder onBind(Intent intent) {
return null;
//do NOT edit this file, auto-generated from Target_Service.java.template
}
public void onCreate() {
}
public void onStart(Intent intent, int startId) {
}
public int onStartCommand(Intent intent, int flags, int startId) {
onStart(intent, startId);
return mStartCompatibility ? START_STICKY_COMPATIBILITY : START_STICKY;
}
public void onDestroy() {
}
public void onConfigurationChanged(Configuration newConfig) {
//do NOT edit this file, auto-generated from Target_Service.java.template
}
public void onLowMemory() {
}
public void onTrimMemory(int level) {
}
public boolean onUnbind(Intent intent) {
return false;
}
public void onRebind(Intent intent) {
}
public void onTaskRemoved(Intent rootIntent) {
}
//do NOT edit this file, auto-generated from Target_Service.java.template
protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) {
}
public final void stopSelf() {
stopSelf(-1);
}
public final void stopSelf(int startId) {
mHostService.stopSelf(startId);
}
public final boolean stopSelfResult(int startId) {
return mHostService.stopSelfResult(startId);
}
public final void setForeground(boolean isForeground) {
//do NOT edit this file, auto-generated from Target_Service.java.template
Log.w(TAG, "setForeground() is not defined for Service...");
// mHostService.setForeground(isForeground);
}
public final void startForeground(int id, Notification notification) {
mHostService.startForeground(id, notification);
}
public final void stopForeground(boolean removeNotification) {
mHostService.stopForeground(removeNotification);
}
// tag_start:IntentService
public void setIntentRedelivery(boolean enabled) {
mHostService.setIntentRedelivery(enabled);
}
//do NOT edit this file, auto-generated from Target_Service.java.template
protected void onHandleIntent(Intent intent) {
}
// tag_end:IntentService
}