Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.content.Context;
import android.content.SharedPreferences;

public class Main {
    public static final String USER_LEVEL = "user_level";
    public static final String USER_DEPOSIT = "user_deposit";
    public static final String USER_KBI = "user_kbi";
    public static final String USER_SCORE = "user_score";
    public static final String USER_CIDIOGRAPH = "user_cidiograph";
    public static final String USER_INFO_OTHER = "user_info_other";

    public static void editUserInfo(Context context, String userLevel, String userDeposit, String userKbi,
            String userScore, String userCidiograph) {
        SharedPreferences perferences = context.getSharedPreferences(USER_INFO_OTHER, Context.MODE_PRIVATE);
        perferences.edit().putString(USER_LEVEL, userLevel).putString(USER_DEPOSIT, userDeposit)
                .putString(USER_KBI, userKbi).putString(USER_SCORE, userScore)
                .putString(USER_CIDIOGRAPH, userCidiograph).commit();
    }
}