Hi everyone.
So in this story are we going to create a new activity called my math activity in order to show the
maps to the user.
So here let's open the Android view and just opened the Java folder here you can see this package right
click on it and new and then click on here and see this activity here right.
Open it.
And here you can see this gallery right click on it.
So now here we can choose Google Maps activity click on next.
So here you can see that the activity name is maps activity layouts name is activity Underland maps
so the default name is actually we don't have to change this name to any other names.
But if you want to we can change this activity name to any other name that you want and you can see
that the title is map.
So here it is a lantern activity.
Let's check this check box here that says larger activity because I want this activity to be a lot of
activity and we can see this hierarchical parent and you have this packaging.
So just click on finish here.
So it's going to create the maps activity for us.
So let's all wait a little bit here and see that it is cradle built is running.
So let's wait.
So the actually activity is created for us and by default this XML file is opened.
You can see that this ex-MIL file is inside the service folder and inside its values folder we have
this example Fido's created for us automatically.
Google underline maps underline API that examen.
So here we can see that we have some description.
So let me double click and start here.
In order to make this area wider it's as before you run your application.
You need a Google Maps API key to get one.
Follow this link.
Follow the directions and press create.
At the end.
So let's copy this link here that you can see here right.
That's copy this one and let's open their web browser and let's paste this actually link here.
Instead it says to put the person into the journal keyboard.
So let's wait a little bit here.
So now it says sign it.
You need to sign in to our Google account here.
So first we need to.
So I'm going to pause there with you and I'm going to sign on to my Google account and then I'm going
to actually record the video again we can see that I signed into my Google account and this page is
open for me.
And it says register your application for Google Maps and read API in Google API icons.
So here it says create a project.
Yet if I open it you can see that my project is here.
So now here I just need to click on continue.
Let's wait a little bit here and here it says enabling API.
So it is the API is enabled.
The project has been created and Google Maps and Android API has been enabled.
Next you'll need to create an API key in order to call the API.
So let's click on Create API key again.
Let's wait a little bit here and now you can see that this page is opened for us here.
So here it is APHC Ickey created used this key in your application bypassing get the key equal operator
API and keep herem it for your API key is this one here.
So let's actually copy this APHC here but just to click on this I can hear copy or you can just right
click on it and then click on copy.
So let's go back to android studio and here you can see this is an attack here.
This is a think tank.
His name is Google Maps key.
And here it is your key here.
So let's delete this value and let's paste that key here right.
That's it.
Now I actually pasted my API here so it makes sure to create your own APHC and then paste it here.
Now here let's go.
Let's open our Android view and let's double click on its manifest folder manifest so that you can see
that this manifest file is actually open.
Let me DoubleClick can this happen in order to make this video so you can see that we have this application
tag right.
And we have this activity main activity.
And you can see that we have this intent filter that says that the main activity is actually luncher
activity.
You can see this here.
Right.
And we also specified that the maps activity so let's let me scroll down here so you can see this meta
data here.
That is actually created for us.
Don't worry about this one.
And look at this activity here.
There is this activity that is created for us automatically when we created the maps activity.
This is the maps activity right.
And we also have this internet filter that says that the maps activity is the latter activity.
We can only have one larger activity inside that application.
So because for now I just want the maps activity to be the latter activity.
We need to delete this intent feature of this main activity here.
So inside this activity that is for this main activity here let's actually highlight this intense filter.
OK and let's delete it right.
So now we only have these maps activity as the launcher activity.
OK.
Let's run the application now.
Let's wait and now let's select one of these emulators and click on OK.
So here you can see that our app is running on the simulator.
And now we can see the map here.
Right.
So by default this can actually give us a location you are in Australia here.
So I'll talk more about this later but right now I just wanted to actually show you how we can just
show the maps to the user.
OK this is the process that we must follow in order to just show the maps to the user.
So in the next tutorials we're going to continue building this application and we're going to continue
adding functionality to this application.
So thank you very much for watching.
If you have any questions about the concepts that I taught you in this lesson please post the discussion
in the course and then I do my best to answer all of your questions.
Thank you very much for watching and I'll see you in the next tutorial.