How do I locate a specific location in google map view (in android studio)? -


in application have few items of list. clicking on each list item navigates corresponding page.

now have item named map view , want user clicks on it, should take map view page , locate address (i have mentioned in code) in map. how that?

in fact haven't worked google map view before.

this have tried: [i not allowed use intent].

dummycontent:

................................ ................................      static {         // add 4 sample items.         additem(new dummyitem("1", "shopping center details"));         additem(new dummyitem("2", "homepage"));         additem(new dummyitem("3", "contact"));         additem(new dummyitem("4", "map view"));     } ................................. .............................. 

itemdetailfragment:

    ................. ....................  }else if(mitem.equals("4")){//4. map view                  /*locate following address in google map:                 times square                 manhattan, ny 10036                 united states                  */                  rootview = inflater.inflate(r.layout.fragment_map_detailed, container, false);                 webview webview = (webview) rootview.findviewbyid(r.id.webview2);                  webview.setwebviewclient(new webviewclient());                  } .............................. ...................... 

fragment_map_detailed.xml:

    <?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical" android:layout_width="match_parent"     android:layout_height="match_parent"     android:weightsum="1">      <webview         android:layout_width="match_parent"         android:layout_height="match_parent"         android:id="@+id/webview2" /> </linearlayout> 

you can use tutorials :

    1. use google service as library
    1. get google map keys in google console
    1. create code

this tutorials good

this too


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -