条件を capslock を無視する方法は? 変更したい:
if ( Name.contains ( layout.txtName.getText ().toString () ) )
大文字を無視します。
case R.id.Contane:
if (Name.contains(layout.txtName.getText().toString()))
{
AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);
alert.setTitle("this is the first resulet for the name that you typed");
alert.setMessage("The contact "+Name+" was found in this phone... yaah");
alert.setPositiveButton("ok",new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i)
{
}
});
alert.show();
Found = true;
break;