The Android Fragment that represents a Map component in an Android app.
Questions tagged [mapfragment]
240 questions
0
votes
1 answer
Google Maps API v2 not loading... worked fine yesterday
I know this has been an asked and reasked question but however i get this strange behaviour. No crashes but the map is not loading anymore.
I am trying to use Google Maps for my Android application. I managed to load my map yesterday but today when…

Adrian Olar
- 2,883
- 4
- 35
- 63
0
votes
1 answer
Get current location as TEXT with Google Maps API v2
I am currently retrieving the current location in my app but i also need the text of this location, or the city i am in at least, something like that.
Is there any known way i can do this?
This is what i have so far:
package…

Adrian Olar
- 2,883
- 4
- 35
- 63
0
votes
2 answers
When trying to use google maps api calls I get runtime exception caused by nullpointer exception
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.View;
import android.widget.Toast;
import…

Ivan Razimov
- 1
- 2
0
votes
1 answer
Error with SupportMapFragment in Android Studio on a Fragment
I have searched many hours and days to find the answer to this, but still cannot. I am using Android Studio (latest ver) IDE
I am trying to create a map view (using Google Maps API) into a Fragment that is part of a FragmentActivity.
AndroidManifest…

josalvmo
- 11
- 3
0
votes
2 answers
MapFragment white screen in Android 2.2 (Error opening frame buffer errno=13)
I'm developing an application that uses Google Maps API v2 and map is working well in devices with Android 4.x (same keystore and same API key and I can see the tiles). I'm having a issue with MapFragment and Android 2.2 device (HTC Wildfire). The…

sourcerebels
- 5,140
- 1
- 32
- 52
0
votes
0 answers
How to make a new instance of a SupportMapFragmen?
I have a ListView with multiple elements. When I click each element of a ListView it loads a Google Map inside FragmentActivity with routes I put before. But when I press back and click another element of the list, the map doesn't show any route and…

Brigadier
- 886
- 7
- 17
0
votes
1 answer
Transaction from mapfragments to other fragments
I got a problem in changing mapfragments to other fragments. (Listfragment or text)
When I use fragmenttransaction to a fragment with only text. The map is still there, and new fragment is over the map. I cannot remove the map.
I searched it, but…

user2421418
- 5
- 1
0
votes
1 answer
MapFragment inside DrawerLayout: Unable to instantiate*.MyMapFragment$1: make sure (...)
I am trying to use a MapFragment inside one of my DrawerLayout item.
My DrawerLayout:
private void selectItem(int position) {
switch (position) {
(...)
case 3:
fragment = new MyMapFragment();
…

Waza_Be
- 39,407
- 49
- 186
- 260
0
votes
1 answer
The Dreaded ClassNotFoundException for MapFragment
I'm facing a very frustrating problem here with the android ADT. I have a project which is using google maps which I have been working on for a few months. I have everything working perfectly on my existing laptop - an x86 winxp box. I'm…

Bob D
- 1
- 2
0
votes
0 answers
Change the default onPress color in Android
On my Galaxy S3, by default when buttons are pressed their backgrounds take on a light blue color. Is there a way to change this color?
I am aware of State List Drawables, and I've been able to use them to do this in certain situations. However,…

Mark
- 1,746
- 2
- 18
- 19
0
votes
1 answer
How to embed customized List on MapFragment
Hi I'm trying to place customized listview on top of the mapFragment (I'm using GoogleMaps api V2). This mapFragment is within a Fragment of a ActionBarTab. I've looked into tileOverlay and groundOverlay, but they are all about placing images(as per…

Amritha Dilip
- 723
- 1
- 8
- 16
0
votes
0 answers
How to use google Map Api2 along-with-other-fragments-in-an-app
Am trying to create and app with one activity but multiple fragment. i am using android.support.v4.* to build the fragment.
Each item i have created so far by extending Fragment, I want to use the google Map Api2 in my application,
All the tutoril…

Sam
- 6,215
- 9
- 71
- 90
0
votes
1 answer
Google maps v2 mapFragment inside a viewFlipper
I'm trying to create a mapFragment inside a view flipper. I have tried several approaches to it and cannot get it to work. so far I have tried:
Declaring the fragment in the right part of the view flipper and accessing it there. The problem with…

chefburns
- 407
- 3
- 12
0
votes
1 answer
calling getMap() inside onStart() in MapFragment gives nullpointerexception
I am trying to implement Maps v2 in actionbar tabs. The map tab is a fragment which is inherited from MapFragment.
The app force closes after clicking on the maps tab. It gives null pointer exception inside onStart method where getMap() has been…

user1961213
- 25
- 7
0
votes
1 answer
How to detect Fragment change and change orientation
I have this Activity container that will change fragments accordingly during the usage of the application.
public class MyTravelogueActivity extends SherlockFragmentActivity {
//codes here
}
Can I ask if it's possible to check that if the…

lyk
- 1,578
- 5
- 25
- 49