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 {
    public static void delete(Context context, int appWidgetId) {
        SharedPreferences prefs = context.getSharedPreferences("NETI_PREF", Context.MODE_PRIVATE);
        if (prefs != null) {
            SharedPreferences.Editor edit = prefs.edit();
            if (edit != null) {
                edit.remove("NETI_BARVA" + String.valueOf(appWidgetId));
                edit.commit();
            }
        }
    }
}