Back to project page android-sqlite-server.
The source code is released under:
Apache License
If you think the Android project android-sqlite-server listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.devtcg.sqliteserver.impl.binder; /*from w w w. j a v a2 s. c o m*/ import android.annotation.TargetApi; import android.content.ContentResolver; import android.content.Context; import android.net.Uri; import android.os.Bundle; @TargetApi(11) public class ContentProviderClient extends AbstractBinderClient { private final ContentResolver mResolver; private final Uri mAuthority; public ContentProviderClient(Context context, String authority) { mResolver = context.getContentResolver(); mAuthority = Uri.parse("content://" + authority); } @Override protected Bundle doTransact(Bundle request) { // method name ("transact") is dummy, the real method name is encoded in the Bundle // for consistency with the service implementation. return mResolver.call(mAuthority, "transact", null, request); } }