1
00:00:00,180 --> 00:00:07,890
So here inside this ELSE block that is related to the runtime permission in order to access the external

2
00:00:07,890 --> 00:00:08,650
storage.

3
00:00:08,700 --> 00:00:13,400
We just need to add this piece of code so here it is activity compact that requires permissions.

4
00:00:13,410 --> 00:00:14,970
First we need to pass the context.

5
00:00:14,970 --> 00:00:20,700
This or main activity that this and as the second argument we need to see new streams at a.

6
00:00:21,030 --> 00:00:25,970
And this array holds this value manifested permission that the right external storage.

7
00:00:26,010 --> 00:00:28,750
And here we need to pass the code.

8
00:00:28,820 --> 00:00:36,210
This the actually the specific code that is actually specific only to this permission to this runtime

9
00:00:36,210 --> 00:00:39,060
permission right external storage.

10
00:00:39,060 --> 00:00:41,530
So you just need to use our unique numbers.

11
00:00:41,580 --> 00:00:45,120
Number two is actually unique so I just I chose this number.

12
00:00:45,120 --> 00:00:45,760
So that's it.

13
00:00:45,870 --> 00:00:48,510
And now if I run the application.

14
00:00:48,600 --> 00:00:55,260
So here you can see that our app is running on this emulator and it says allow upload and download files.

15
00:00:55,260 --> 00:01:00,330
This is the name of the project to access photo photos media and files on your device so we just need

16
00:01:00,330 --> 00:01:02,490
to allow the app to do this.

17
00:01:03,500 --> 00:01:08,440
So now let's click can upload the image to firebase Let's choose photos.

18
00:01:10,940 --> 00:01:13,950
And here let's use this image and select this one.

19
00:01:13,970 --> 00:01:14,880
And then here.

20
00:01:14,960 --> 00:01:19,820
So now it's going to upload the image first to the firebase and then it's going to download the image.

21
00:01:19,820 --> 00:01:24,110
So don't worry about that in the next tutorial you're going to learn how to download the image from

22
00:01:24,110 --> 00:01:27,320
the firebase and put it here in place of this image.

23
00:01:27,680 --> 00:01:29,270
So thank you very much for watching.

24
00:01:29,300 --> 00:01:34,700
In the next tutorial we're going to learn how to download the image from the firebase and put it here

25
00:01:34,730 --> 00:01:37,890
like this one here in place of this image for you.

26
00:01:38,120 --> 00:01:39,740
So I'll see you in the next story or.

