public class MyService extends Service {
final String LOG_TAG = "myLogs";
ExecutorService es;
public void onCreate() {
super.onCreate();
Log.d(LOG_TAG, "onCreate MyService");
es = Executors.newFixedThreadPool(2);
}
...
}
Find more questions by tags Android