That's not possible. The last parameter in the makeText method actually expects one of two constants:
Toast.LENGTH_LONG
and
Toast.LENGTH_SHORT
You cannot influence how long the toast is shown aside from choosing one of these. If you have a long text consider using a dialog like this:
AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext());
builder.setTitle("Title");
builder.setMessage("Long Text...");
builder.setNeutralButton("Ok",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
AlertDialog alert = builder.create();
alert.show();
Of course you should not hardcode strings like I did in this example. Consider putting them in the string resources.