Code example for ExecutorService

Methods: shutdown

0
    } 
 
    @Override 
    public void onDestroy() { 
        super.onDestroy(); 
        mThreadPool.shutdown();
    } 
 
    /** 
     * Unless you provide binding for your service, you don't need to implement this method, because 
     * the default implementation returns null. 
     * 
     * @see android.app.Service#onBind 
     */ 
    @Override 
    public IBinder onBind(Intent intent) {
        return null; 
    } 
 
    /** 
     * Define the maximum number of concurrent worker threads used to execute the incoming Intents.