If you think the Android project SyncFrameworkAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/***
Copyright (c) 2014 Selvin/*www.java2s.com*/
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required
by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.
*/package pl.selvin.android.listsyncsample.provider;
import android.database.Cursor;
import android.net.Uri;
import pl.selvin.android.listsyncsample.Setup;
import pl.selvin.android.syncframework.content.BaseContentProvider;
import pl.selvin.android.syncframework.content.ContentHelper;
publicclass ListProvider extends BaseContentProvider {
privatefinalstatic ContentHelper helperInstance = ContentHelper.getInstance(Setup.class);
public ListProvider() {
super(getHelper());
}
publicstaticsynchronized ContentHelper getHelper() {
return helperInstance;
}
// we don't need implementation ... base class do everything on it's own
// this is just class which we are pointing in xml files as Provider
// since one day i'll move BaseContentProvider to library
@Override
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
returnsuper
.query(uri, projection, selection, selectionArgs, sortOrder);
}
}