1
I need a class that listens for any changes in the application (or external changes).
I made a class that extended from class Service
, but I understand that it goes into the method onStartCommand
only once.
I’m doing something wrong?
@Override
public IBinder onBind(Intent arg0) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Log.e("--> ", "onStartCommand");
return START_STICKY;
}
@Override
public void onDestroy() {
super.onDestroy();
}