ive been trying to run this code, but the condition result never going to the else ,even when the value of my slat is 0.0
public void keLogin(){
if(slat.equals("0.0")) {
Toast.makeText(getBaseContext(),"pls wait until we know your location",Toast.LENGTH_LONG).show();
} else {
Intent keLogin = new Intent(getApplicationContext(), Login_Activity.class);
keLogin.putExtra("slat", slat);
keLogin.putExtra("slong", slong);
startActivity(keLogin);
}
}
Aucun commentaire:
Enregistrer un commentaire