All Questions
Tagged with google-maps-android-api-2 mapfragment
41
questions
0
votes
0
answers
79
views
Showing multiple markers on google mapfragment via an array list
I have an arraylist of latitude and longitude and I am trying to put a marker at different places using the values of my array list; but nothing is showing on map when I run the below code.
for(int x =...
1
vote
0
answers
127
views
Initialisation of MapFragment in Activity Failing
I use the following XML code to create a MapFragment:
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
...
0
votes
1
answer
1k
views
Show route and map icon by default - Mapfragment Android
Hi,
1. Please find the route and map icon in the highlighted area.
2. These are shown on touch of the my location blue circle .
3. want to show those icons by default, without the user touching, as ...
1
vote
2
answers
469
views
Hide map borders and labels in android MapFragment
I have a MapFragment object that I would like to modify, so that all the labels: county,street and such wont be visible. also the borders of the counties wont be visible...
so that I'll get only the ...
3
votes
1
answer
282
views
Null reference exception when using CameraUpdateFactory with MapFragment in an Android FragmentActivity
this is my first post and I would like to do a self Q&A here. :)
When embedding a MapFragment (from Google Maps Android API v2)
to an fragment activity, I encountered an internal Google Maps ...
7
votes
4
answers
8k
views
How to Hide Map Fragment - Android
Using below code to show and hide MapFragment, and it works just well:
public class MapFragmentActivity extends FragmentActivity {
...........
mMapFragment = ((SupportMapFragment)...
4
votes
0
answers
351
views
Cannot replace fragment inside tab with another fragment
I am working on Android app which has 4 tabs in action bar (main_activity.xml).
In one tab, i would call it MapListFragment (map_list_fragment.xml), i have to show two different fragments (list and ...
1
vote
1
answer
210
views
What is wrong with SupportMapFragment?
I have adt x86-64 mac os. I did everything from maps v2 documentation but i still get:
09-28 03:07:11.755: E/AndroidRuntime(549): Caused by: android.app.Fragment$InstantiationException: Unable to ...
1
vote
1
answer
364
views
Getting a blank Google map in V2
I'm using Google map V2 in my project, I'm instantiating map in baseadapter class (setting in listview),
Layout file:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
2
answers
376
views
Class Cast Exception from MapFragment to Fragment in android google maps api v2
Alright, here I am trying to make this app consisting of a navigation drawer and a map fragment.
My aim is to click on an item in nav drawer and it takes you to specified coordinates on the map.
But I'...
1
vote
2
answers
733
views
MapFragment returns Null
I have an activity and MapFragment Class.I have created MapFragment Object in Activity.When I tried to get mapFragmentObject.getView() it is returning Null.But i have created MapFragment like this
@...
0
votes
1
answer
89
views
Error inflating class fragment in google map v2
i have serious problem with the issue of google map v2.
Here is my code
MainActivity.java
package com.example.newsimplemap;
import com.google.android.gms.maps.GoogleMap;
import com.google.android....
3
votes
3
answers
5k
views
Polylines performance issues on GoogleMaps API v2
I'm programming an app for android, in which i have to represent certain block facades. For this purpose, i draw a polyline for each relevant block facade (very simple polylines, 2 point lines ...
0
votes
1
answer
961
views
Map cannot be resolved: is not a field on (R.id.map)
I am a beginner in Android programming. I have an error on the project MapFragment. Even though they had followed the tutorials on Google. I've imported the Google library project and play service on ...
0
votes
2
answers
171
views
Google Map not load in Android its give Errors
I am first time working with android map V2.
I was added all Require Permission in AndroidManifest.xml file and also add my map key.
I was import external map library and also install google play ...