riversRef.putFile(file)
.addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
pd.dismiss();
Snackbar.make(findViewById(android.R.id.content),"image",Snackbar.LENGTH_LONG).show();
}
}) // тут
.addOnFailurelListener(new OnFailureListener(){
@Override
public void onFailure(@NonNull Exception exception){
pd.dismiss();
Toast.makeText(getApplicationContext(),"failed to Uploa",Toast.LENGTH_LONG).show();
}
}) // и тут
.addOnProgressListener(new OnProgressListener<UploadTask.TaskSnapshot>(){
@Override
public void onProgress(@NonNull UploadTask.TaskSnapshot taskSnapshot){
double progressPercent=(100.00*taskSnapshot.getBytesTransferred()/taskSnapshot.getTotalByteCount());
pd.setMessage("Percentage"+(int)progressPercent+"%");
}
});
adapter = new MyListAdapter(MainActivity.this, title, subTitle, imageID);
operator = operators.nextLine();
String operator = operators.nextLine();
var operator = operators.nextLine();
operator == "+"
"+".eqauls(operator )