Back to project page SNET.
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.
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; } }); } }