google-maps-android-api-2

NoSuchMethodError com.google.android.gms.internal.g.f

强颜欢笑 提交于 2019-11-29 18:38:37
问题 I have a difficult problem to solve. I've published my app on Play and everything is okay, but the problem is that there are 2 devices that crashes the app with the following error: java.lang.NoSuchMethodError: java.io.IOException.<init> at com.google.android.gms.internal.g.f(Unknown Source) at com.google.android.gms.internal.g.b(Unknown Source) at com.google.android.gms.internal.e.a(Unknown Source) at com.google.android.gms.internal.e.a(Unknown Source) at com.google.android.gms.internal.bq

Could Not Find Class com.google.android.gms.maps.SupportMapFragment

馋奶兔 提交于 2019-11-29 18:01:47
So I'm working on an app that uses Google Maps v2 API to display a map overlay. I know this question has been asked before but I've tried everything. I am testing my app using a Nexus 5 device that is not rooted and has Google Play Services installed. LogCat displays the following: 09-14 20:18:27.646: E/dalvikvm(10951): Could not find class 'com.google.android.gms.maps.SupportMapFragment', referenced from method com.bryansworld.algonquinreview.MainActivity.setUpMapInitial 09-14 20:18:27.686: E/AndroidRuntime(10951): FATAL EXCEPTION: main 09-14 20:18:27.686: E/AndroidRuntime(10951): Process:

Google Maps v2 not loading. Error android.view.InflateException: Binary XML file line.. Error inflating class fragment

☆樱花仙子☆ 提交于 2019-11-29 17:57:33
This is my MainActivity. minimum sdk version is 11 in my app. I used the API key in the android manifest file. When I did some minor modifications, it is showing me blank white space instead of map. public class MainActivity extends Activity { // Google Map private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); try { // Loading map initilizeMap(); } catch (Exception e) { e.printStackTrace(); } } /** * function to load map. If map is not created it will create it for you * */ private

Android Google maps APIv2 InfoWindow and Markers

筅森魡賤 提交于 2019-11-29 16:17:23
I'm using Google maps APIv2 for android. I've implemented MapFragment, put markers where I need, added custom InfoWindow for markers. The issue is - I have AsyncImages in my InfoWindow and have ProgressBar there. The thing is - ProgressBar doesn't spin, and Image doesn't set after I got it from cache. AsyncImages does work well. I've tested it into another class. I've replace my AsyncImages view with just single ProgressBar - the same. It doesn't spin. Any suggestions? UPD. Spinner doen't spin cause of Note: The info window that is drawn is not a live view. The view is rendered as an image

Android maps - Markers Bounds at the center of top half of map area

前提是你 提交于 2019-11-29 15:53:14
I have Android Map Extension attached under actionBar. I have couple of markers, lets say 2000. Than I have ArrayList of selected 3 markers upon some constant condition, nevermind. I want to zoom and move map to include this selected 3 markers at max possible zoom. It's an easy task, from this forum I found an easy way to do it : LatLngBounds bounds = new LatLngBounds.Builder().include(new LatLng(maxLat, maxLon)).include(new LatLng(minLat, minLon)).build(); mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0)); I have map perfectly zoomed at this 3 markers. Now is hard part. When I

Drawing route on Google Maps using Google Maps Android API v2

时光毁灭记忆、已成空白 提交于 2019-11-29 15:33:50
问题 I have an app in which I am continuously tracking user's location using Google Plays new service API for Maps. I am updating the location every single second and I am also checking user activity like STILL, TILTING, IN VEHICLE, etc to get the better location tracking. I am able to draw a path using my code but it's not accurate and differs very much from the road where the user actually drives/walk. It always draws the line someway far from the actual user's path. My Service:- public class

How to implement search functionality for Google Map Api V2 Android?

旧城冷巷雨未停 提交于 2019-11-29 14:41:33
I need to implement a search functionality for my Android Google Map Api V2 project and can't find any working example. I just need to enter a city name, press a "Search" button and then the map should move to the city and show a marker on it. Just like the Google Maps application does. Autocompletion should be nice though. I actully get to show the map, show some markers, etc, I just can't get to perform the search and see the results. Please help! Thanks in advance I just need to enter a city name, press a "Search" button and then the map should move to the city and show a marker on it. Just

Using Google Maps and Baidu Maps in same app

拜拜、爱过 提交于 2019-11-29 14:29:28
问题 I'm wondering if there are anyone out that have implemented Google Maps V2 and Baidu Maps in the same version; because GM doesn't work as intended in China? Or should I split the project into two branches instead? However it would be nice to skip having two branches to maintain. 回答1: My solution for this was to implement GM as usual, however if the user has China set (via settings) static maps is to be used, BUT the static map is fetched from Baidu instead of google. staticUrl = "http://api

Can not install google-play-services into Eclipse correctly (trying to get maps working)

て烟熏妆下的殇ゞ 提交于 2019-11-29 14:14:44
My current wokspace setup looks like this: However, people have told me that to get maps working, I also need to have "google-play-services_lib.jar" in my "Android Dependencies" folder, and the way to do that was through doing: "to Google Play Services into your project Project -> Properties -> Android -> Library, Add -> google-play-services_lib " The only problem with that is it always after the initial green marker , it turns to a red cross when re-opening "Project -> Properties -> Android -> Library" ...and also no "google-play-services_lib.jar" gets added to "Android Dependencies" in the

Google map not showing in android activity?

本小妞迷上赌 提交于 2019-11-29 12:47:41
In my android app I want to have a MainActivity with a google map occupying the entire screen. My problem is that the google map does not display a map, only the google logo in the bottom left corner: Here are the relevant parts of the main activity where the map should be displayed: public class MainActivity extends AppCompatActivity implements OnMapReadyCallback, NavigationView.OnNavigationItemSelectedListener { private GoogleMap mMap; private FragmentManager mFragmentManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R