So here inside this ELSE block that is related to the runtime permission in order to access the external
storage.
We just need to add this piece of code so here it is activity compact that requires permissions.
First we need to pass the context.
This or main activity that this and as the second argument we need to see new streams at a.
And this array holds this value manifested permission that the right external storage.
And here we need to pass the code.
This the actually the specific code that is actually specific only to this permission to this runtime
permission right external storage.
So you just need to use our unique numbers.
Number two is actually unique so I just I chose this number.
So that's it.
And now if I run the application.
So here you can see that our app is running on this emulator and it says allow upload and download files.
This is the name of the project to access photo photos media and files on your device so we just need
to allow the app to do this.
So now let's click can upload the image to firebase Let's choose photos.
And here let's use this image and select this one.
And then here.
So now it's going to upload the image first to the firebase and then it's going to download the image.
So don't worry about that in the next tutorial you're going to learn how to download the image from
the firebase and put it here in place of this image.
So thank you very much for watching.
In the next tutorial we're going to learn how to download the image from the firebase and put it here
like this one here in place of this image for you.
So I'll see you in the next story or.