Example usage for android.app Service getSharedPreferences

List of usage examples for android.app Service getSharedPreferences

Introduction

In this page you can find the example usage for android.app Service getSharedPreferences.

Prototype

@Override
    public SharedPreferences getSharedPreferences(String name, int mode) 

Source Link

Usage

From source file:Main.java

public static SharedPreferences getSharedPreferences(Service service) {
    return service.getSharedPreferences("com.cpp2.sp.global", Context.MODE_PRIVATE);
}