Back to project page sana.
The source code is released under:
Copyright (c) 2010, Moca All rights reserved. The source code for Moca is licensed under the BSD license as follows: Redistribution and use in source and binary forms, with or without modification, ...
If you think the Android project sana 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.moca.activity; /*from w w w.j a v a2s .c o m*/ import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.os.Bundle; public class PatientInfoDialog extends Activity { private static String errormessage; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Builder builder = new AlertDialog.Builder(this); builder.setTitle("Patient information does not match database"); builder.setMessage(errormessage); builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { setResult(RESULT_OK); dialog.cancel(); } }); builder.setNegativeButton("No", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { setResult(RESULT_CANCELED); dialog.cancel(); } }); builder.show(); } public void setErrorMessage(String msg) { errormessage = msg; } }