google-maps-android-api-2

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"/>

Android, How to add Google map options from XML layout?

浪尽此生 提交于 2019-12-23 10:04:40
问题 I have a fragment that holds a MapView. I have added this view in XML file like this: <?xml version="1.0" encoding="utf-8"?> <com.google.android.gms.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/mapView" android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="true" map:uiCompass="true" android:background="#00000000" /> And I've linked it to my code like this:

ArrayIndexOutOfBounds on Android polyline draw

家住魔仙堡 提交于 2019-12-23 09:07:50
问题 I am using google map lite mode version in which i am drawing poly lines and markers on Lenovo K50a40 I m receiving following error **Non-fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=42; index=42** at maps.ah.k.a(Unknown Source:4000) at maps.ah.k.a(Unknown Source) at maps.ah.k.a(Unknown Source) at maps.ah.i.a(Unknown Source) at maps.ah.d.onDraw(Unknown Source) at android.view.View.draw(View.java:16457) at android.view.View.buildDrawingCacheImpl(View.java:15722) at android

google map v2 issue with uft8 string for title in android

微笑、不失礼 提交于 2019-12-23 05:29:36
问题 I'm developing an android project,in this project i have google map view and i use google map v2 . The problem is, i have some MarkerOption and i'm setting a utf8 string for them but the titles are shown as an empty string here is my code for adding markers: MarkerOptions marker = new MarkerOptions().position(pos).title("سلام"); marker.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)); googleMap.addMarker(marker); how can i solve this? thanks for any helps 回答1: you

Android google maps v2 crashes on start

做~自己de王妃 提交于 2019-12-23 05:11:17
问题 Everytime I've tried to test my app on my phone, It shows a prompt that says "Unfortunately, the app has stopped." I have already checked the build path, I've made sure that Google play services library is added. I've tried searching several threads already on how to fix and none of them are working. So I've made this post as a last resort to get someone to check it manually. Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"

Android ACCESS_FINE_LOCATION permission not being granted or something?

孤者浪人 提交于 2019-12-23 04:47:24
问题 AI have made a simple app that displays a marker at user's current location and I have used all permissions in the manifest. Here is the code: public class LocationActivity extends FragmentActivity implements LocationListener { SupportMapFragment map; GoogleMap googleMap; LocationManager loc; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_location); map=(SupportMapFragment) getSupportFragmentManager()

Google Maps Android V2 debug and release key

♀尐吖头ヾ 提交于 2019-12-23 04:13:16
问题 I recently got the release key from Google Maps Android V2; So before exporting the signing APK from eclipse; I updated the manifest, changing the debug API key from GMaps to the Release API keys. Hours later I needed to debug something, so I ran the app on debug but I didn't change the Manifest API key back to the debug one . As far as I am concerned, the app is signed with the debug key machine, but it contains the release key from GMaps API. As far as I know, it was supposed NOT TO WORK .

Load only markers surrounding my location Google Map v2 Android

筅森魡賤 提交于 2019-12-23 02:55:13
问题 I have a lot of markers (1700 or more) loading on a Google Map v2 in Android. I would like to cut down on the amount of memory being used creating this map as it seems to be FC my 2.3 Droid. I would like to add points only if they are within the visible screen area. I have looked at the Google Maps Extension and see this: map.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true)); However my for loop adds all the markers to the map. How do I set this up and only

fillColor in Google Maps API polygon not working

笑着哭i 提交于 2019-12-23 02:39:13
问题 I try to create a polygon to cover an area with these code: map.addPolygon(new PolygonOptions() .add(new LatLng(-7.542257, 110.446209), new LatLng(-7.557232, 110.420116), new LatLng(-7.580375, 110.400890), new LatLng(-7.592626, 110.389904), new LatLng(-7.596710, 110.391277), new LatLng(-7.599433, 110.381664), new LatLng(-7.604877, 110.376171), new LatLng(-7.617128, 110.361065), new LatLng(-7.628017, 110.345959), new LatLng(-7.636184, 110.334972), new LatLng(-7.655239, 110.303387), new LatLng(

Performance benchmark of native android map vs webview map, what parameters can be included in the benchmark

前提是你 提交于 2019-12-23 02:35:00
问题 I am trying to compare native google maps (v2) vs the embeddable HTML version encapsulated in a webview on android. While it's pretty evident that the native maps are smoother and faster, I must prove that somehow. I have been searching on the internet for quite some time and did not seem to find any existing benchmarks. Does anybody know someone who actually done something similar? I am already thinking of creating such benchmark of my own, but how can the performance actually be measured?