get ContentValues for String - Android android.content

Android examples for android.content:ContentValues

Description

get ContentValues for String

Demo Code


//package com.java2s;
import android.content.ContentValues;

public class Main {
    private static ContentValues mConv;

    public static ContentValues getConvString(String key, String value) {
        if (mConv != null) {
            mConv = null;//w w w  . j a va2s  .c om
        }
        mConv = new ContentValues();
        mConv.put(key, value);
        return mConv;
    }
}

Related Tutorials