Android Open Source - SNET Preference






From Project

Back to project page SNET.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project SNET listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.snet.notepad;
/*from   w  ww  .j a v a2  s.c o m*/
import com.snet.R;
import com.snet.R.xml;

import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.*;
 
public class Preference extends PreferenceActivity {
 
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
 
        addPreferencesFromResource(R.xml.preference);
        android.preference.Preference button = findPreference("button");
        button.setOnPreferenceClickListener(new android.preference.Preference.OnPreferenceClickListener() {

            @Override
            public boolean onPreferenceClick(
                android.preference.Preference arg0) {
               NotesBDD noteBdd = new NotesBDD(null);
                  noteBdd.exportDB();
                  
              return false;
            }
                    });
    }
}




Java Source Code List

com.snet.MainActivity.java
com.snet.notepad.NoteEdition.java
com.snet.notepad.NoteMain.java
com.snet.notepad.Note.java
com.snet.notepad.NotesBDD.java
com.snet.notepad.Preference.java
com.snet.notepad.SQLiteBase.java
com.snet.textedit.TextEdition.java