google-maps-api-2

ERROR: This AVD's configuration is missing a kernel file for Map-V2 [closed]

别来无恙 提交于 2019-12-24 03:06:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I m trying to integrate a map-V2 into my application and getting the error "This AVD's configuration is missing a kernel file!!" Please help me! Thanks In advance 回答1: From your question I assume that this is due to non existence of google play services in emulator If I am right then please follow this answer

How to use OnMarkerClickListener

北战南征 提交于 2019-12-24 00:59:05
问题 I'm trying to make an application that allows to open new activity from a marker on the map with the method GoogleMap.OnMarkerClickListener but do not know how to use it. Does anyone help me? 回答1: Just use this: getMap().setOnInfoWindowClickListener(new OnInfoWindowClickListener() { public void onInfoWindowClick(Marker marker) { Intent i = new Intent(getActivity(), NewActivity.class); startActivity(i); } }); I used this code in my custom class that extends MapFragment I've placed it in this

Google map leave by time

那年仲夏 提交于 2019-12-24 00:48:51
问题 I am currently trying to figure out if there is a way to calculate what is the best time to leave by in order to reach my destination using google maps api. example: San Francisco -> Menlo Park ArrivalTime: 12pm CurrentTime: 11:00am Leave by time: 11:30am Currently distancematrix api seems to fit my needs; however, setting the arrival time or departure time does not give a response with when to leave. So I am wondering, if I am missing something or is there another api within google that can

Google Map with CollapsingToolbar and NestedScrollView

試著忘記壹切 提交于 2019-12-23 17:34:48
问题 I am developing app like UBER. First scrolling of custom marker was working fine on map. After that i added NestedScrollView just like UBER. But map scrolling gesture is conflicting with AppBar Scrolling behaviour. I don't know what to do, please help me out. Screenshot This is my Code. home_fragment.xml <?xml version="1.0" encoding="utf-8"?><?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android

Android : Google map api version 2

霸气de小男生 提交于 2019-12-23 11:50:52
问题 I follow steps for configure Google Maps Android API v2 Official steps I am using Android 3.1 version. I am getting error which I run project. Manifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.mapdemo" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-feature android:glEsVersion="0x00020000" android:required="true"/>

polymer starter kit, google-map, examples together

穿精又带淫゛_ 提交于 2019-12-23 02:21:21
问题 I am trying to display a google-map on a Polymer Starter-kit page. I start with Polymer init... go with the standard Starter-kit... Do a ... bower install --save GoogleWebComponents/google-map I get a Google Map Key... Everything works great... except. I can not get the damn map to display on a page. I can go through the example and tutorials... no trouble. But getting the tag to work in the Start-kit has been a problem. Does anyone have some examples with google-map in Starter-kit? Ideally

How to get geographical coordinates in google maps API V2 android using an string address?

二次信任 提交于 2019-12-23 01:57:18
问题 I´m designing an android app that locate places, these places are in a database in a server but I only have the name and location of the place, so I need to locate it in my app and put a marker there. It's posible to get coordinates only with address or, Do I need to redo my database adding fields with latitude and longitude? 回答1: You can use the Geocoder class to do a look-up of the addresses you have, and then populate the map with Markers using the LanLng objects that are returned. Note

Google Maps Android API v2 - simple map app crashes

荒凉一梦 提交于 2019-12-22 10:40:02
问题 I'm new to android dev :) I'm trying to create a simple app: an activity with a map. I connected my HTC 1x to the computer and when I try to run the app (via intellij IDEA), it crashes. I have searched for the net (and stackoverflow) for clues and couldn't find any. For example: - Google Maps v2 - Error - google map - runtimeexception - error inflating class fragment Can you please tell me why?? Thanks, Omer Tech details: HTC 1x runs android 4.1.1 Project External libraries: - Android 4.0

Googlemap api v3 slower than api v2?

自闭症网瘾萝莉.ら 提交于 2019-12-21 17:46:42
问题 I am in the midst of converting old googlemap v2 code to v3 and it looks if v3 is much slower than v2? Most of my code change is just replacing G with google.maps. (GMarker to google.maps.Marker) Any tips or tricks how to speed things up?? 回答1: The solution might be as simple as experimenting with different versions of the v3 API by trying v=3.4 and v=3.5 in your links that load the API like so: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&v=3.5"><

Google Maps API v3 - GIcon is not defined

我是研究僧i 提交于 2019-12-21 07:56:33
问题 I know they are some issues from v2 to v3 what can i do here to fix it? GIcon is not supported by v3? // Google-Map icon object var gMapIcon = new GIcon(G_DEFAULT_ICON); //change to new google.maps.MarkerImage();??? // does icon exist if ( mapElements[lMapElementIndex]['icon'].toString().length > 0) { gMapIcon.image = html_entity_decode(mapElements[lMapElementIndex]['icon']); gMapIcon.shadow = ""; iconHeight = mapElements[lMapElementIndex]['iconheight']; iconWidth = mapElements