Saving an image into android


#1

Hi guys, I have the asset of an Image stored into my phone and I wont to upload it into the firebase’s storage… But first I have to save the image in order to get its path for uploading it online (may I upload it directly knowing only the assets, without the needs of resaving it?)
So I have written this code


When the program has to check if the image has been saved, it doesn’t do anything: it doesn’t pass from neither from the true phase nor from the false phase, without printing anything… why?
This is the console


#2

Can you also add the code that declares the image variable? Perhaps it isn’t a valid image.

And you may be able to find a stacktrace when running adb logcat