从android源代码可以看到没有onStop()方法。所以选C public abstract class Service extends ContextWrapper implements ComponentCallbacks { public Service() { super((Context)null); throw new RuntimeException("Stub!"); } public final Application getApplication() { throw new RuntimeException("Stub!"); } public void onCreate() { throw new RuntimeException("Stub!"); } public void onStart(Intent intent, int startId) { throw new RuntimeException("Stub!"); } public int onStartCommand(Intent intent, int flags, int startId) { throw new RuntimeException("Stub!"); } public void onDestroy() { throw new RuntimeException("Stub!"); } public void onConfigurationChanged(Configuration newConfig) { throw new RuntimeException("Stub!"); } public void onLowMemory() { throw new RuntimeException("Stub!"); } public abstract IBinder onBind(Intent var1); public boolean onUnbind(Intent intent) { throw new RuntimeException("Stub!"); } public void onRebind(Intent intent) { throw new RuntimeException("Stub!"); } public final void stopSelf() { throw new RuntimeException("Stub!"); } public final void stopSelf(int startId) { throw new RuntimeException("Stub!"); } public final boolean stopSelfResult(int startId) { throw new RuntimeException("Stub!"); } public final void setForeground(boolean isForeground) { throw new RuntimeException("Stub!"); } public final void startForeground(int id, Notification notification) { throw new RuntimeException("Stub!"); } public final void stopForeground(boolean removeNotification) { throw new RuntimeException("Stub!"); } protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { throw new RuntimeException("Stub!"); } protected void finalize() throws Throwable { throw new RuntimeException("Stub!"); } }