google-maps-android-api-2

Still Gets “Couldn't get connection factory client” Error

风格不统一 提交于 2019-12-01 12:21:52
04-01 10:17:20.701: E/MapActivity(377): Couldn't get connection factory client All I get is gray tiles and the map doesn't get loaded. Hey everyone I know there are lots of similar posts I did thoroughly go through them. It can be Internet permission (I added that before application tag ), Or uses-library android:name="com.google.android.maps" (Added inside application tag ) or it's bad API Key. Here's the thing I earlier created a debug key and Google map api v1 displayed map correctly with no problem. Later when i opened that project it didn't resolve MapActivity,GeoPoint,MapController etc..

how to show multiple marker on google map android

馋奶兔 提交于 2019-12-01 11:10:51
i want to show location with multiple markers on google maps android, the problem is when i run my apps, it just show one location/marker, this is my code : public class koordinatTask extends AsyncTask<String, String, String> { @Override protected void onPreExecute() { super.onPreExecute(); setProgressBarIndeterminateVisibility(true); } protected String doInBackground(String... args) { String url = "http://absc?action=p04&prov="+link_kode+"&tipe="; JSONArray data = null; try { JSONParser jParser = new JSONParser(); JSONObject json = jParser.getJSONFromUrl(url); // Getting Array of data data =

How to manage click on marker which is not in Cluster in Android Google Map API?

南楼画角 提交于 2019-12-01 11:07:39
I am having trouble implementing OnClickListener for Marker(s) which are not in Cluster, i.e. not added using: mClusterManager.addItem(markerCluster); I have set OnMarkerClickLister as follows: mMap.setOnCameraIdleListener(mClusterManager); mMap.setOnMarkerClickListener(mClusterManager); If I just use: mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { return false; } }); the click on markers is not working at all. For example: I have this situation: Two green dots and big blue dot (with number 6) are one Cluster, but

google map - runtimeexception - error inflating class fragment

时光怂恿深爱的人放手 提交于 2019-12-01 11:06:17
I just try to view a map on the display, but it does not work. I get an runtimeexception: 01-17 19:16:47.066: E/AndroidRuntime(6605): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maptest/com.example.maptest.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment Java: import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.MapFragment; import com.google.android.maps

Google map view no longer loading after ADT upgrade; apparent authentication issue?

混江龙づ霸主 提交于 2019-12-01 11:00:27
I'm working on an location-aware Android app that uses Google Maps. I upgraded by ADT to 23.0.0.1245622 the other day. I think I was on v22.6.2-1085508 before then. Now the map view only contains the Google logo and the +/- buttons. And, eerily, my logcat contains the following line: 07-01 12:15:08.548: E/Google Maps Android API(6299): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). I have tried cleaning the project, by the way. No dice. I tried running this on an AVD instead of my Galaxy S3. No dice. I tried

Customize marker of myLocation Google Maps v2 Android

本小妞迷上赌 提交于 2019-12-01 10:33:06
I'm developing an android application that uses google maps v2. But i have a problem. I want to customize blue dot point(marker) of myLocation that google map gives us. Somebody can tell me how to customize this?? I want to change blue marker for an image and put a info window associated to marker. Thanks. Regards. As of version 3.1.36 of the API v2, the blue dot cannot be changed. I suggest not enabling the blue dot and instead using LocationClient and the location data to display normal Marker (optionally with a Circle for accuracy). Every time you get a Location object, just update Marker

PlaceAutocompleteFragment disappears on click

折月煮酒 提交于 2019-12-01 10:25:36
问题 I wanted to implement AutocompleteTextView (google places) but when I click to searchView in a fragment, the fragment disappears (fell down). My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_autocomplete); PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); AutocompleteFilter typeFilter = new

How to save tracking polylines in database?

送分小仙女□ 提交于 2019-12-01 10:20:53
问题 I have created a function whereby I am able to track the user's route and create a polyline. I have been trying to save it to Firebase as - routeId, routeName, lat, lng The method I have used is, everytime on a location change, the user's new lat and long will be saved into Firebase, a routeName that the user has set and (currently) a static routeId. if (mCurrentLocation != null) { String newLat = String.valueOf(mCurrentLocation.getLatitude()); String newLng = String.valueOf(mCurrentLocation

How can I show current location on a Google Map on Android Marshmallow?

旧时模样 提交于 2019-12-01 09:57:16
问题 I want google maps to show the location of the user. I tried this code, but it did not work on Android 6. private GoogleMap map; LocationManager lm; LocationListener ll; Location l; LatLng pos; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.start_layout); lm = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); ll = new LocationListener() { @Override public void onLocationChanged(Location location) { l

Maps V2 how to rotate Marker - where is rotation option?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 09:38:21
问题 According to all the docs I have, such as... this link "rotation" is a valid marker option. But it's not there! For instance if you put this code cited in the docs into your program ... static final LatLng PERTH = new LatLng(-31.90, 115.86); Marker perth = mMap.addMarker(new MarkerOptions() .position(PERTH) .anchor(0.5,0.5) .rotation(90.0)); the rotation is flagged as not being a valid MarkerOption. I also tried doing setRotation(float) on a returned Marker object to that got flagged as