1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

LibraryService starting

This commit is contained in:
Nikolay Pultsin 2011-12-28 05:08:06 +00:00
parent 9fb57f930c
commit ac40fa1e59
5 changed files with 47 additions and 3 deletions

View file

@ -24,6 +24,17 @@ import android.content.Intent;
import android.os.IBinder;
public class LibraryService extends Service {
@Override
public void onStart(Intent intent, int startId) {
onStartCommand(intent, 0, startId);
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
System.err.println("LibraryService started for intent " + intent);
return START_STICKY;
}
@Override
public IBinder onBind(Intent intent) {
System.err.println("LibraryService binded for intent " + intent);