Back to project page Text-Edit-for-Android.
The source code is released under:
GNU General Public License
If you think the Android project Text-Edit-for-Android 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 org.paulmach.textedit; /*from ww w . j a va 2 s . c om*/ import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.preference.DialogPreference; import android.util.AttributeSet; /* WarrantyPreference * Just diplays the warranty of the app */ public class WarrantyPreference extends DialogPreference { // This is the constructor called by the inflater public WarrantyPreference(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onPrepareDialogBuilder(AlertDialog.Builder builder){ // Data has changed, notify so UI can be refreshed! builder.setTitle("Warranty Information"); builder.setPositiveButton("Continue", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }); builder.setMessage(R.string.warranty_short); builder.setNegativeButton(null, null); } } // end class WarrantyPreference