Example #1
0
 @Override
 public void onCreate() {
   Log.d("LoggingService", "service start...");
   // Preference, gps, DAO 초기화
   gps = new GpsInfo(this);
   sp = new SBPreference(this);
   lDAO = new LoggerDAO(this);
   lDAO.open();
 }
Example #2
0
 @Override
 public void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   Log.d("LoggingService", "onDestroy()");
   gps.stopUsingGPS();
   gps.stopSelf();
   gps = null;
   lDAO.close();
 }