Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

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

public class Main {
    private static String getUserAccount(Context context) {
        SharedPreferences sp = context.getSharedPreferences("user_account", Context.MODE_PRIVATE);
        String user_account = sp.getString("user_account", "");
        return user_account;
    }
}