converter application
<p>i've realized an application that converts a decimal number to binary, hexadecimal and octal. this program converts all the number that i write in the EditText thanks to three buttons, one for binary, one for hexadecimal and octal, but if i delete the number from the EditText, and i push one of this button, the program continues to convert the number that i've just deleted. so in which way can i avoid this? when i launch the program for the first time, in the space in which appears the converted number is written "Number Converted", and if i push one of the three buttons before digit a number in the EditText, appears a Toast in which is written Insert a number. So i want that also if i delete a number after previously converted, appears "Number Converted" like the first launch</p>

<p>this is the code of the binary button</p>

<pre><code>Editable stringEditable = numero.getText();  
            nuovo = stringEditable.toString();            
            if(nuovo.equals(""))                          
            {
            Toast t = Toast.makeText(convertitore.this, "Insert a number", Toast.LENGTH_SHORT);
            t.show();
            display.setText("Numero Convertito");
            }else numero2= Integer.parseInt(nuovo);           
            nuovo=Integer.toBinaryString(numero2);
            display.setText(nuovo);
        }
</code></pre>
