ダイアログボックスが表示されず、データが空のときにDBに挿入されます...ダイアログボックスに関するすべてのコードは既に使用していますが、まだ機能します。現在のページに、編集テキストが空で、ユーザーが入力する必要があるという警告ボックスが表示されるようにしたいだけです..
if (name == null || inputName.getText().toString().length() == 0)
{  
 if (price == null || inputPrice.getText().toString().length() == 0)
    {  
      if (description == null || inputDesc.getText().toString().length() == 0)
         { 
           // creating new product in background thread
           new CreateNewProduct().execute();
         }
       else
         {
          AlertDialog.Builder alertbox = new  AlertDialog.Builder(NewProductActivity.this)      ;
                       // set the message to display
                       alertbox.setMessage("This is the alertbox!");
            // add a neutral button to the alert box and assign a click listener
             alertbox.setNeutralButton("Ok", new DialogInterface.OnClickListener() 
            {
               // click listener on the alert box
               public void onClick(DialogInterface arg0, int arg1) {
               // the button was clicked
               Toast.makeText(getApplicationContext(), "OK button clicked", Toast.LENGTH_LONG).show();
             }
             });
                 // show it
                 alertbox.show(); 
       }
       }
        else{
                   AlertDialog.Builder alertbox = new AlertDialog.Builder(NewProductActivity.this);
                   // set the message to display
                   alertbox.setMessage("This is the alertbox!");
                   // add a neutral button to the alert box and assign a click listener
                   alertbox.setNeutralButton("Ok", new DialogInterface.OnClickListener() {
                       // click listener on the alert box
                       public void onClick(DialogInterface arg0, int arg1) {
                           // the button was clicked
                           Toast.makeText(getApplicationContext(), "OK button clicked", Toast.LENGTH_LONG).show();
                       }
                   });
                   // show it
                   alertbox.show(); 
               }
            }else{
                AlertDialog.Builder alertbox = new AlertDialog.Builder(NewProductActivity.this);
                // set the message to display
                alertbox.setMessage("This is the alertbox!");
                // add a neutral button to the alert box and assign a click listener
                alertbox.setNeutralButton("Ok", new DialogInterface.OnClickListener() {
                    // click listener on the alert box
                    public void onClick(DialogInterface arg0, int arg1) {
                        // the button was clicked
                        Toast.makeText(getApplicationContext(), "OK button clicked", Toast.LENGTH_LONG).show();
                    }
                });
                // show it
                alertbox.show(); 
            }
            }
        });