![JAR search and dependency download from the Maven repository](/logo.png)
com.yy.httpproxy.service.DummyService Maven / Gradle / Ivy
package com.yy.httpproxy.service;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
public class DummyService extends Service {
private final String TAG = "DummyService";
@Override
public void onCreate() {
super.onCreate();
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
builder.setPriority(Notification.PRIORITY_MIN);
Log.i(TAG, "DummyService onCreate");
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.d(TAG, "onStartCommand");
return Service.START_STICKY;
}
@Override
public void onDestroy() {
super.onDestroy();
Log.i(TAG, "DummyService onDestroy");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy