Code example for Editable

Methods: toString

0
            final EditText input = new EditText(this); 
            alert.setView(input); 
            alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { 
                    public void onClick(DialogInterface dialog, int whichButton) { 
                    Editable value = input.getText(); 
                    netid = Integer.parseInt(value.toString()); 
                    mWifiManager.disableNetwork(netid); 
                    } 
                    }); 
            alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { 
                    public void onClick(DialogInterface dialog, int whichButton) { 
                    // Canceled. 
                    } 
                    }); 
            alert.show(); 
        } else if (pref == mWifiEnableNetwork) { 
            AlertDialog.Builder alert = new AlertDialog.Builder(this); 
            alert.setTitle("Input"); 
            alert.setMessage("Enter Network ID"); 
            // Set an EditText view to get user input 
            final EditText input = new EditText(this);