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.preference.PreferenceManager;

public class Main {
    public static void savePosition(Context context, int positionY, int positionX) {
        PreferenceManager.getDefaultSharedPreferences(context).edit().putInt("fa_positionY", positionY).apply();
        PreferenceManager.getDefaultSharedPreferences(context).edit().putInt("fa_positionX", positionX).apply();
    }
}