예제 #1
0
 // @Override // Avoid compile errors on pre-2.0
 public int onStartCommand(Intent intent, int flags, int startId) {
   handleCommand(intent, startId);
   return Compatibility.START_NOT_STICKY;
 }
예제 #2
0
 // This is the old onStart method that will be called on the pre-2.0
 // platform.  On 2.0 or later we override onStartCommand() so this
 // method will not be called.
 @Override
 public void onStart(Intent intent, int startId) {
   handleCommand(intent, startId);
 }