// Path: ormlite-content-provider-sample/src/com/tojc/ormlite/android/ormlitecontentprovider/sample/provider/AccountContract.java
// public final class AccountContract implements BaseColumns {
// 
//     private AccountContract() {
//         // Utility constructor
//     }
// 
//     public static final String TABLE_NAME = "Account";
// 
//     public static final String AUTHORITY = "com.tojc.ormlite.android.ormlitecontentprovider.sample";
// 
//     public static final String CONTENT_URI_PATH = "accounts";
// 
//     public static final String MIMETYPE_TYPE = "accounts";
//     public static final String MIMETYPE_NAME = "com.tojc.ormlite.android.ormlitecontentprovider.sample.provider";
// 
//     public static final int CONTENT_URI_PATTERN_MANY = 1;
//     public static final int CONTENT_URI_PATTERN_ONE = 2;
// 
//     public static final Uri CONTENT_URI = new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY).appendPath(CONTENT_URI_PATH).build();
// 
//     public static final String NAME = "name";
// }


import android.util.Log;
import android.view.Menu;
import com.tojc.ormlite.android.ormlitecontentprovider.sample.provider.AccountContract;
import java.util.ArrayList;
import android.app.Activity;
import android.content.ContentProviderClient;
import android.content.ContentProviderOperation;
import android.content.ContentValues;
import android.database.Cursor;
import android.os.Bundle;
import android.os.RemoteException;
/*
 * This file is part of the Android-OrmLiteContentProvider package.
 *
 * Copyright (c) 2012, Android-OrmLiteContentProvider Team.
 *                     Jaken Jarvis (jaken.jarvis@gmail.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.
 *
 * The author may be contacted via
 * https://github.com/jakenjarvis/Android-OrmLiteContentProvider
 */
package com.tojc.ormlite.android.ormlitecontentprovider.sample;




public class MainActivity extends Activity {
    private static final int TEST_ENTRY_COUNT = 10;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // insert test
        ContentValues values = new ContentValues();
        values.clear();
// Path: ormlite-content-provider-sample/src/com/tojc/ormlite/android/ormlitecontentprovider/sample/provider/AccountContract.java
// public final class AccountContract implements BaseColumns {
// 
//     private AccountContract() {
//         // Utility constructor
//     }
// 
//     public static final String TABLE_NAME = "Account";
// 
//     public static final String AUTHORITY = "com.tojc.ormlite.android.ormlitecontentprovider.sample";
// 
//     public static final String CONTENT_URI_PATH = "accounts";
// 
//     public static final String MIMETYPE_TYPE = "accounts";
//     public static final String MIMETYPE_NAME = "com.tojc.ormlite.android.ormlitecontentprovider.sample.provider";
// 
//     public static final int CONTENT_URI_PATTERN_MANY = 1;
//     public static final int CONTENT_URI_PATTERN_ONE = 2;
// 
//     public static final Uri CONTENT_URI = new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY).appendPath(CONTENT_URI_PATH).build();
// 
//     public static final String NAME = "name";
// }


// Path: ormlite-content-provider-sample/src/com/tojc/ormlite/android/ormlitecontentprovider/sample/MainActivity.java
import android.util.Log;
import android.view.Menu;
import com.tojc.ormlite.android.ormlitecontentprovider.sample.provider.AccountContract;
import java.util.ArrayList;
import android.app.Activity;
import android.content.ContentProviderClient;
import android.content.ContentProviderOperation;
import android.content.ContentValues;
import android.database.Cursor;
import android.os.Bundle;
import android.os.RemoteException;

/*
 * This file is part of the Android-OrmLiteContentProvider package.
 *
 * Copyright (c) 2012, Android-OrmLiteContentProvider Team.
 *                     Jaken Jarvis (jaken.jarvis@gmail.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.
 *
 * The author may be contacted via
 * https://github.com/jakenjarvis/Android-OrmLiteContentProvider
 */
package com.tojc.ormlite.android.ormlitecontentprovider.sample;




public class MainActivity extends Activity {
    private static final int TEST_ENTRY_COUNT = 10;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // insert test
        ContentValues values = new ContentValues();
        values.clear();
        values.put(AccountContract.NAME, "Yamada Tarou");