Hi everyone it is literally I want to tell you that I want to allow the user to interactivity the image
when the image is actually taken by using the camera.
OK.
So we don't want this save the picture button to be with the will to the user of the user for the first
time or when the user for example runs the application and the UN method is called.
Right.
I don't want these bars to be visible to the user when the uncreate method is called or the share your
image.
So let's go back to android studio inside this uncreate Smurfette after this line of code that says
that the listener for this billion share are first of all I want to actually make the spot in pity and
save the picture this button to be invisible.
I can't say BT and save the picture.
That said visibility view actually that invisible view that an invisible.
And then I want to also actually make these sequels to be invisible so I can say I'm the first one is
Red Sea right.
Read the report that said visibility view that's invisible green bar that said visibility sets visibility
view that invisible.
And then finally a blue.
That said visibility view that invisible right.
And then we also want to actually make it spot and share your image.
We want to also this button to be invisible in the uncreate if it is called so I can say PTEN sure.
That said visibility view that invisible.
So now I want all these components to be visible inside the on activity results Mefford because unactivated
is out and if it is where they use it has actually taken an image and inside that Mefford all you want.
Are these actually these components to be visible to the user.
If the user has taken an image by using a camera.
So let's go to are actually the activity on his iPhone if it an activity it is not my fault.
So just you can put down the can to comment on your keyboard and then press on on your keyboard.
And if you are using any of those machine you just need to hold on to control your keyboard and then
press and then at that if he on your keyboard in order to search for a specific keyboard so an activity
result.
So here we have this if statements right.
So this if statement here is going to be executed when an image is actually taken by using the camera.
So now here let me show you the emulator.
So first we want to actually make the save the feature button to be visible so I can see PTEN save the
picture that said visibility view thought visible and then you want to make these search to be visible
so I can say let's see.
Bar that said visibility view that visible.
We have the green bar so I can see a green seaport.
That said visibility.
And then I can actually make this one visible.
And finally the blue sea bar that said visibility.
Visible.
Right.
And then we got to also make the spot and Cherian image to be visible.
So PETN Cherian the match between shed actually that set visibility Elizabeth let's run the application
now.
Let me stop the program and let's let me run the application now.
Let me show you the emulator so now our application is the simulator and I forgot to actually make these
takes we used to be invisible.
So let's go back to our Android studio.
So let's go back to android studio and let's scroll to the top here.
Let's go to the uncreate Meffert.
And this may make these takes it takes views to be also invisible.
So it takes the red color value that said visibility of that invisible takes the green color value that
sets visibility view that invisible takes the blue color value.
That said visibility view that invisible.
So let's go to our own activity Elizabeth Mefford.
Let me find it on activity resort.
So here it is or on activity is all.
And now I can actually make these takes views to be visible inside these statements so I can see the
exterior color value that said visibility view that visible takes the green color value that sets visibility
view that visible takes the blue color value.
That said visibility that actually viewed that visible.
That's it.
Let's run an application now.
Let me show you the emulator.
So now you can see that modification is right in here and we can only see the image and the button take
a picture.
Let's actually take it here and you can see these components are now visible.
Right.
You can actually interact with this image here.
I can interact with these actually see parts I can share my image or I can actually save the picture
right.
So that's it.
And I think that's enough for this tutorial.
We actually created our production platy Android application that you can upload it to the Google Play
store.
So thank you very much for watching.
If you have any questions please put the discussion in the course and then I'll do my best to answer
all of your questions.