Course Content

Course Content

Description

Example of Map API in Android Application

 

In this video we are going to see example of Map API in Android application.

First of all we will open module settings by pressing f12 key from our keyboard. And after that we will add maps library.

After that we will design the layout, an automatic fragment will be created inside which a map will be displayed. When we open its main activity file, we will see a default code is generated there.

Inside it we will set our local longitude and latitude codes,

LatLng adi=new LatLng(23.038112,72.546602);

These are the codes for Gujarat University Ahmedabad.

By doing this the marker of our application when loaded, will launch on Gujarat University Ahmedabad's location.

We just need to make one simple move before running our code, go to command prompt and write 'telnet localhost 5554' and launch it, where 5554 is emulator code. This is to provide internet to our emulator.

When we run our code, it runs successfully as we needed.

FAQs

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download The Apps

Code Scan or Download the app
Google Play Store
297K+ Downloads
4.5 Rating
10K+ Reviews
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere