Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created January 4, 2014 15:10
Show Gist options
  • Save tatuas/8256250 to your computer and use it in GitHub Desktop.
Save tatuas/8256250 to your computer and use it in GitHub Desktop.
AndroidのServiceサンプル
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
public class FileManageService extends Service {
@Override
public void onCreate() {
super.onCreate();
}
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
}
@Override
public void onDestroy() {
super.onDestroy();
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public boolean onUnbind(Intent intent) {
return false;
}
@Override
public void onRebind(Intent intent) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment