google-maps-android-api-2

Android SDK Manager doesn't load the latest Android SDK Platform (API 17)

巧了我就是萌 提交于 2019-12-01 15:20:01
When I go to Android SDK Manager from eclipse and trying to Install new packages it doesn't allow me to install any of them. Most of these new packages depends on installing "Android API 17 SDK platform". But the "Android API 17 SDK platform" doesn't load in the list on the Android SDK Manager for me to install. Following is a screenshot of the message it displaying to avoid installation. Would be grateful if someone can guide me through this. Thanks. Clear the Cache under Tools ---> Options or disable it entirely. I've had problems before with packages not showing because of Cache. After that

google maps V2 “Unfortunately app has Stopped”

我只是一个虾纸丫 提交于 2019-12-01 14:46:58
I just begin to learn Android .take 4 days to try work maps view but not work .that error Unfortunately the app has stopped Setu Kumar Basak There are some things you need to check: 1. Is the SHA1 fingerprint is ok that you have registered in google api console .For how to find it , you can find it here 2. The generated api_key must be same with the menifest . 3. Name of the app in api console must be same with the name of app in strings.xml . 4. meta-data must have to be included in menifest . <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play

Android SDK Manager doesn't load the latest Android SDK Platform (API 17)

霸气de小男生 提交于 2019-12-01 14:12:33
问题 When I go to Android SDK Manager from eclipse and trying to Install new packages it doesn't allow me to install any of them. Most of these new packages depends on installing "Android API 17 SDK platform". But the "Android API 17 SDK platform" doesn't load in the list on the Android SDK Manager for me to install. Following is a screenshot of the message it displaying to avoid installation. Would be grateful if someone can guide me through this. Thanks. 回答1: Clear the Cache under Tools --->

How to save tracking polylines in database?

雨燕双飞 提交于 2019-12-01 13:57:36
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.getLongitude()); LatLng newPoint = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation

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

匆匆过客 提交于 2019-12-01 13:42:07
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 = (Location) location; } @Override public void onStatusChanged(String provider, int status, Bundle

How to change language in android google maps v2 programmatically

最后都变了- 提交于 2019-12-01 13:08:42
I have an app where you can change the locale from the settings (the purpose is to be able to have a locale inside the app that is different from the system locale) and I would like to be able to set the map's language as well. I could only find answers like "set the system language of your phone", which is not what I am looking for. Is there a way to set the map's language programmatically or from xml? public class LocalizedActivity extends FragmentActivity { private GoogleMap map; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // you need to call

googlemapsv2 white screen

北城余情 提交于 2019-12-01 13:04:38
问题 I developed my first application Turkiye trafik Olayları. My problem is that if I open my application in Eclipse with ether a real device or virtual device, Google maps v2 works perfectly. But if a user installs it, Google maps v2 appears only as a white screen. What could be the problem? I can not find the problem because if I use debug with real device it works as expected (shows Google map). 回答1: Make sure that you have added the correct credentials on the Google API console. Click the

Geocoder.getFromLocationName() throws “Service not available” exception on Android 4 with Google Maps V2

自作多情 提交于 2019-12-01 12:39:41
The method Geocoder.getFromLocationName() throws the exception Service not available on Android 4.1, even if GooglePlayServicesUtil.isGooglePlayServicesAvailable() returns SUCCESS and Geocoder.isPresent() returns true . Is there any official example for geocoding in the new Google Maps v2 API? Geocoder is not related to Google Maps Android API v2. You may want to use Google Geocoding API directly instead of Geocoder , which gives you limited amount of data and might be affected by device or Android version specific problems. try this ..... public JSONObject getLocationFormGoogle(String

google maps V2 “Unfortunately app has Stopped”

痞子三分冷 提交于 2019-12-01 12:32:32
问题 I just begin to learn Android .take 4 days to try work maps view but not work .that error Unfortunately the app has stopped 回答1: There are some things you need to check: 1. Is the SHA1 fingerprint is ok that you have registered in google api console .For how to find it , you can find it here 2. The generated api_key must be same with the menifest . 3. Name of the app in api console must be same with the name of app in strings.xml . 4. meta-data must have to be included in menifest . <meta

PlaceAutocompleteFragment disappears on click

无人久伴 提交于 2019-12-01 12:30:34
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 AutocompleteFilter.Builder() .setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES) .build(); autocompleteFragment