Updated Google Maps Tutorial | PART 5 (Android Tutorials)

In the previous 4 parts, we completed the get current location part of this tutorial.
In this video, I will show you how to add a search bar and a search button to the maps activity and how to search for a particular location using that.
First, we are going to work on the xml file. We will add a text field and a button. User will enter the location he wants to search in the google maps in the text field and then the user will click on the search button.

We will check if the user has entered anything in the text field or not. This part is called exception handling. Once, we have made sure that the user entered something in the search bar, then we can fetch that string and search it using Geocoder class.

Find more information about Geocoder class here :
http://developer.android.com

Watch previous parts HERE :
1) Part 1 : https://youtu.be/Ot8D-GZ8qfY
2) Part 2 : https://youtu.be/HD48FBwY9U0
3) Part 3 : https://youtu.be/rGkhzguavlc
4) Part 4 : https://youtu.be/T2R9ETdd24Y

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Google Maps Tutorial : Part 1 (Android Tutorials)

In this tutorial, you’ll learn how to create a basic google maps app using google maps v2 plugin. Android Studio makes it all easier by making everything ready for you. You just have to create a key and copy it in the app.

I will teach you how to do that in this tutorial. It will show only a fixed location near nigeria. In the next part, I will show you how to show your current location.

Source Code of full app : https://www.dropbox.com/sh/293c77aq7u23ebo/AAABWeCXBqs-3zdvKjm-x_Yfa?dl=0
(Above Link is not working, I apologize for the inconvenience)

Next part : http://youtu.be/dr0zEmuDuIk

Other Tutorials :
How to check SQLite Database values :
https://youtu.be/w_SWdnE4pPI

Speech Recognition App Tutorial :
https://youtu.be/nzkrRQgCEmE

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2015-06-05 13:32:26
Duration: 5M53S
Views: 217369
Likes: 676
Favorites: 0

Updated Google Maps Tutorial | PART 3 (Android Tutorials)

In the previous 2 parts of this android tutorial series, we first created a map with the default location set to sydney, Australia. So, in this tutorial, we are going to complete 2 methods, viz., onConnected() and onLocationChanged().

In the onConnected() method, we will create a LocationRequest and set some properties to that object. In the onLocationChanged() method, we are going to get the latitude and longitude of the new location and set it to the LatLng object. We are going to create a marker and set properties to that marker using MarkerOptions class.

Then, we will create one more method called checkLocationPermission() which will call checkSelfPermission() method.

So the app has to explicitly ask the user for permission to access location/GPS services. It will display a dialog box when the app is opened the first time and the user can either grant the permission or deny it. If the permission is granted then and then only, the map will be shown with the current location. Otherwise, you won’t be able to display your current location because you won’t be able to access locaiton/GPS services.

Watch other parts HERE :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 4 : https://youtu.be/T2R9ETdd24Y
Part 5 : https://youtu.be/AaLgEpDmJ6E

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-06-23 17:50:02
Duration: 13M34S
Views: 483
Likes: 19
Favorites: 0

Updated Google Maps Tutorial | PART 4 (Android Tutorials)

In the previous part, we completed the checkLocationPermission() method. In this part, we are going to create one more method and our get current location part of this tutorial series will get over.

The method that we are going to create in this part of the tutorial is to check if the permission is granted or not. You may have noticed that, when we open google maps app, it asks for user permission to access GPS services. So, we are basically going to create that dialog box where the app will ask for user’s permission to access location/GPS services. If the user declines, it will show a popup message that the permission was declined, and we won’t be able to check our current location.

Then, we are going to call the checkLocationPermission() method in the onCreate() method.

How to enable USB debugging : (I apologize for the bad audio and video quality)
https://youtu.be/uu6Mrh1iHyQ

Watch other parts here :
Part 1 : https://youtu.be/Ot8D-GZ8qfY
Part 2 : https://youtu.be/HD48FBwY9U0
Part 3 : https://youtu.be/rGkhzguavlc
Part 5 : https://youtu.be/AaLgEpDmJ6E

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-06-26 00:35:30
Duration: 7M11S
Views: 412
Likes: 15
Favorites: 0

Updated Google Maps Tutorial | PART 1

This is an updated version of my previous tutorial. I received a lot of requests to upload an updated version of this tutorial.
Later, we will learn how to track a moving person’s location and some other things too.

Watch next parts HERE :
PART 2 : https://youtu.be/HD48FBwY9U0
PART 3 : https://youtu.be/rGkhzguavlc
PART 4 : https://youtu.be/T2R9ETdd24Y
PART 5 : https://youtu.be/AaLgEpDmJ6E

Find me here :

Google+ : https://plus.google.com/u/0/b/105970252005982916681/105970252005982916681/posts
Twitter : https://twitter.com/AndroidAcademy1
Facebook : https://www.facebook.com/AndroidAcademy8?ref=hl

Channel: Tech Academy
Published: 2017-06-17 23:04:30
Duration: 4M49S
Views: 758
Likes: 22
Favorites: 0

Updated Google Maps Tutorial | PART 2 (Android Tutorials)

Channel: Tech Academy
Published: 2017-06-18 22:18:42
Duration: 9M42S
Views: 657
Likes: 19
Favorites: 0

Leave a Reply

Your email address will not be published. Required fields are marked *