Toast.makeText(getBaseContext(),"Please wait while your submission is being sent",Toast.LENGTH_LONG).show(); mfirestore.collection("MYPrince").add(usmap).addOnSuccessListener(new OnSuccessListener<DocumentReference>() { @Override public void onSuccess(DocumentReference documentReference) { Intent i = new Intent(Thanks.this, success.class); startActivity(i); } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Intent i = new Intent(Thanks.this, error.class); startActivity(i); } });
AlertDialog
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)