mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
LibraryService starting
This commit is contained in:
parent
9fb57f930c
commit
ac40fa1e59
5 changed files with 47 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue