android-maps-v2

ActionBarSherlock + GoogleMaps v2 map not shown (without map log errors)

家住魔仙堡 提交于 2019-12-11 15:39:52
问题 I just settled my project for supporting Android Maps v2 + ActionBarSherlock, as this answer says: http://facebook.stackoverflow.com/a/13727539/689723 Ok, I was fighting for not getting the typical XML error, and I could finally get the fragment without errors. I'm pretty sure my AndroidManifest is ok. My log is: 01-21 00:43:03.455: D/dalvikvm(4990): GC_CONCURRENT freed 311K, 8% free 13870K/14983K, paused 1ms+3ms, total 20ms 01-21 00:43:03.455: D/dalvikvm(4990): WAIT_FOR_CONCURRENT_GC blocked

Can't make google maps v2 to work

独自空忆成欢 提交于 2019-12-11 15:07:22
问题 I tried a lot of examples but still can't get it to work! I have a grid with no maps and " couldn't get connection factory client". I tried here and here and here and many others. I tried to run it and on device but still the same. Any ideas here?Any other good tutorial? Thank you! 回答1: I see that you have tried my tutorial. The problem you describe usually happens when there is a problem with your key. Please go over the next tutorial as well for getting your key: Google Map API V2 Key it

How to re-size fragment and set to Google Map V2?

烈酒焚心 提交于 2019-12-11 14:09:47
问题 I am trying to create Facebook like slider from the following answer, where i want to change map width at a run time. I tried inside bindComponent method , but its not working for me.. map.xml <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapView" android:layout_width="fill_parent" android:layout_height="fill_parent" class="com.google.android.gms.maps.SupportMapFragment" /> Activity public class MapActivity extends

View on top of map disappears while using it with a DrawerLayout

大憨熊 提交于 2019-12-11 13:53:29
问题 I'm creating a layout which contains a maps (com.google.android.gms.maps.SupportMapFragment) & a mini layout to enter origin & destination(pickup_dropoff_LL LinearLayout). XML <RelativeLayout android:id="@+id/main_RL" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/rideType_LL"> <include android:id="@+id/pickup_dropoff_LL" layout="@layout/layout_pickup_dropoff" android:layout_width="match_parent" android:layout_height="wrap_content" android

MapView V2 in a ScrollView draws itself over the ActionBar

醉酒当歌 提交于 2019-12-11 12:38:51
问题 So, all bad things in the title aside, I've got a MapView (and a few other Views) inside of a ScrollView (I know, and I've advised a thousand times against putting a MapView in a scrolling container but this is what the client wants) and when I scroll the ScrollView up the MapView ends up drawing over the ActionBar . I set the zOrderOnTop to true on the GoogleMapOptions that I pass to the constructor of MapView which prevents this from happening when I first add the MapView to the view

GoogleMap Android API V2 Capture Error

懵懂的女人 提交于 2019-12-11 10:49:57
问题 I try @Tarsem answer already but have fatal error occur can I know why? @Tarsem answer: https://stackoverflow.com/a/18308611/2398886 <--- these are my error codes in eclipse: ---> 08-21 18:52:23.399: W/dalvikvm(29376): threadid=1: thread exiting with uncaught exception (group=0x40018578) 08-21 18:52:23.409: E/AndroidRuntime(29376): FATAL EXCEPTION: main 08-21 18:52:23.409: E/AndroidRuntime(29376): java.lang.NoClassDefFoundError: com.example.testing01.MainActivity2$6 08-21 18:52:23.409: E

Blank Screen Android 2.2 Google Maps v2

不羁岁月 提交于 2019-12-11 10:20:35
问题 EDIT : I transferred my 20+ projects that tries to use Google Maps for Android v2. After changing keys and stuff, now, it works. I don't know what made this work, but thank you all. I got one keystore, the key is right. I guess it magically fixed somehow. Well, thanks guys. I'm doing searches for 2 days and I couldn't fix this problem. I did everything, yet, this application can not work. I want my application to work on Android 2.2 and above. Like it says "if you create your app in level 8,

How to keep map orientation fixed towards North in android

北城以北 提交于 2019-12-11 08:45:15
问题 i want to keep my maps orientation always towards north .If the location changes towards left in driving mode ,It should always align it towards north. 回答1: Actually there are two orientations 1.North-up 2.Track-up i think these both are pretty explainable by their name itself. About the one you are asking is North-up . The exact implementation of North-up is given here 来源: https://stackoverflow.com/questions/55699977/how-to-keep-map-orientation-fixed-towards-north-in-android

Label at the top of the marker in google maps api v2

依然范特西╮ 提交于 2019-12-11 07:49:29
问题 One more problem while switching to the maps api v2. This is an ugly representation of what i want to achieve. Edit1. There can be several markers, every marker with its own label. All markers and labels are shown simultaneously. As you can see there is a label with some information at the top of the marker. While using api v1 it can easily be done with drawing marker and label on Overlay . How can I implement it using api v2? The first idea is to render marker(red) and label(black) to one

NullPointerException - Location - getLatitude() method [duplicate]

隐身守侯 提交于 2019-12-11 07:12:10
问题 This question already has an answer here : Android getlastknownlocation returns null (1 answer) Closed 6 years ago . I'm receiving a null pointer exception on this line: double latitude = location.getLatitude(); Is there anything I need to be doing to initialize my Location variable? What am I doing wrong? Here is my source code: Location location; if (isGpsEnabled) { location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); } else { location = locationManager