Saturday 19 September 2015


Basic functions of android Service


@Override
public void onStart(Intent intent, int startId) {
handleStart(intent, startId);

}

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
handleStart(intent, startId);

// Only action ACTION_REFRESH creates background thread, so just return
// START_NOT_STICKY
return START_REDELIVER_INTENT;
}

private void handleStart(Intent intent, int startId) {

if (intent != null) {
}
}

No comments:

Post a Comment