0
How to put this Toast to last only a few seconds? For example, 10 seconds.
if (mEmail.equals(email) && mPassword.equals(password)) {
Intent intent = new Intent(LoginActivity.this, MainActivity2.class);
intent.putExtra("result", result);
startActivity(intent);
}
else {
Toast.makeText(LoginActivity.this,"Email ou senha inválido(s)",Toast.LENGTH_SHORT).show();
}
}
} catch (JSONException e) {
e.printStackTrace();
}}}}
please mark the correct answer if I have helped you.
– LMaker