get ContentValues for Int - Android android.content

Android examples for android.content:ContentValues

Description

get ContentValues for Int

Demo Code


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

public class Main {
    private static ContentValues mConv;

    public static ContentValues getConvInt(String key, int value) {
        if (mConv != null) {
            mConv = null;//  w w w  .  ja  v  a 2  s  .  c  om
        }
        mConv = new ContentValues();
        mConv.put(key, value);
        return mConv;
    }
}

Related Tutorials