public void persistLocation(LocationProxy location) { if (dao.persistLocation(location)) { Log.d(TAG, "Persisted Location: " + location.toString()); } else { Log.w(TAG, "Failed to persist location"); } }
protected void persistLocation(LocationProxy location) { LocationDAO dao = DAOFactory.createLocationDAO(this.getApplicationContext()); if (dao.persistLocation(location)) { Log.d(TAG, "Persisted Location: " + location); } else { Log.w(TAG, "Failed to persist location"); } }