android-maps-v2

xamarin google map not working

核能气质少年 提交于 2019-12-12 21:26:44
问题 I created a map using the following link http://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/part_2_-_maps_api/ i followed all the procedures mentioned in it but what am getting is a blank screen. My application Output shows the following log on executing the map activity. Open Connection [REQUEST] DRD(41): 62|147 [REQUEST] Close [REQUEST] Error processing: com.google.maps.api.android.lib6.b.d@42a1cef8 not retrying [REQUEST] Retrying: com.google.maps.api

Android Google Map V2 Stopped

岁酱吖の 提交于 2019-12-12 16:01:20
问题 I'm trying to built map app and following this link step by step. I found similar topics in here but didn't help me. I want to show map, but when I run it, it return force close and my android device. I saw a lots of questions about this error but no one really answer to my problem. Here is my LogCat: 03-21 20:55:57.476: D/AndroidRuntime(4090): Shutting down VM 03-21 20:55:57.476: W/dalvikvm(4090): threadid=1: thread exiting with uncaught exception (group=0x417692a0) 03-21 20:55:57.500: E

Add Google Maps to Android app

半腔热情 提交于 2019-12-12 10:12:58
问题 I need help adding Google Maps to my Android app. I have followed the instructions on https://developers.google.com/maps/documentation/android/start, but I still get an error when running the app. This my manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.image.app" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name

index value issue on the markers

房东的猫 提交于 2019-12-12 06:13:30
问题 I want to display these values on markers from the fcmUsers list when user click on marker it will show its own value or data in text view from the fcmUsers list fcmUsers List have public Long createdat; and public Long hajjappnum; DatabaseReference UserRef = FirebaseDatabase.getInstance().getReference().child("GPSLocationHistory").child("DevicesLatest"); UserRef.keepSynced(true); new GetDataFromFirebase().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); FirebaseDatabase database =

Android GMaps v2 - Get location of the center of the map & map height and width

心不动则不痛 提交于 2019-12-12 05:22:24
问题 I'm trying to get the latitude and longitude of the center of the map in the Google Maps V2 API & get the width and length of the map. Here is my old code(from GMaps v1 that I started to modify): import com.google.android.gms.maps.GoogleMap; private GoogleMap mGoogleMapView; public LatLng getMapCenter() { if( mGoogleMapView != null ) { return mGoogleMapView.getMapCenter(); } /*if( mOpenStreetMapView != null ) { return convertOSMGeoPoint( mOpenStreetMapView.getMapCenter() ); }*/ return null; }

Google Maps API v2 for Android: Marker and Polyline position mismatch

北战南征 提交于 2019-12-12 04:55:32
问题 I'm trying to draw some markers and a polyline in the same map this way MarkerOptions options = new MarkerOptions(); Marker marker; PolylineOptions polyLineOptions = new PolylineOptions(); polyLineOptions.color(context.getResources().getColor(R.color.mm_red)); if (route != null) { for(Entry entry : route.getEntries().getEntryList()){ LatLng pos = new LatLng(entry.getGeolocation().getLatitude(), entry.getGeolocation().getLongitude()); options.position(pos); polyLineOptions.add(pos); marker =

RequestFactory validation fails when including Android maps v2 fragment

寵の児 提交于 2019-12-12 03:35:36
问题 I have successfully used RequestFactory for a very long time in my Android app, but now when trying to upgrade to maps v2, when I include <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.SupportMapFragment" /> in my XML layout file, I get the error: 01-25 08:08:41.978: E/AndroidRuntime(19854): java.lang.RuntimeException: Unable to resume

Android GooglePlay LocationClient is null, although initialized in onCreate()

南楼画角 提交于 2019-12-12 00:44:09
问题 I am working with the Google Play LocationClient. I have initialized it in onCreate() as stated in the docs: mLocationClient = new LocationClient(this, this, this); and I am doing a connect in onStart() mLocationClient.connect(); It works fine in my Android phone, but in the Developers Console I see that a NullPointerException is happening in the connect() line. How can this happen? 回答1: That is probably because the device that cause the NPE does not have Google Play Service or is not up to

getting null on current location on Samsung Galaxy Grand android?

安稳与你 提交于 2019-12-11 19:24:36
问题 I'm try to run my app on Samsung Galaxy Grand but its not showing my current location. locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); // Creating a criteria object to retrieve provider Criteria criteria = new Criteria(); // Getting the name of the best provider String provider = locationManager.getBestProvider(criteria, true); System.out.println("provider => " + provider); // Getting Current Location Location location = locationManager.getLastKnownLocation

Google Map V2 not working for me . Any sample?

旧时模样 提交于 2019-12-11 19:17:05
问题 I have used many samples of Google map V2 , and i have followed all the things which are necessary for this. But still having problem, only map view is showing and my current location is not being displayed on my emulator . I have already created my system MD 5 key and API key from API console and used the SHA 1 key in manifest. But still having problem. So please help me. My Source Code : MainActivity.java package com.googlev2.android; import android.os.Bundle; import android.app.Activity;