An Android base class with code to manage the boring necessities of any activity that displays a MapView.
Questions tagged [mapactivity]
192 questions
23
votes
4 answers
Uncaught exception thrown by finalizer: Google API bug Or Samsung kernel bug?
I keep getting this error when launch my app on my galaxy Tab 2 (Samsung).
The app i'm developing is quite complicated and it is very hard to track down where this error originates from. So I started to strip down piece by piece my app and I ended…

WiZarD
- 361
- 2
- 5
14
votes
8 answers
Android MapActivity : Couldn't get connection factory client
I'm trying to get the Map demos working, as provided in the Google API
sample projects. I am using AVDs and have tried with versions 8, 10
and 11 and get the same issue.
I've generated my own debug key and added to the project. I can see
the map…

electricSunny
- 3,229
- 4
- 19
- 21
10
votes
5 answers
MapFragment causing NullPointerException at getMapAsync(this) method
I have implemented an activity which adds MapFragment at run time. The MapFragment xml has static fragment and I'm trying to get add at run time. Also I found there are some issues in Lollipop adding the map fragment at runtime. Kindly check Issue…

Kavin Prabhu
- 2,307
- 2
- 17
- 36
10
votes
1 answer
SherlockActionBar in a MapActivity
I'm using the Sherlock Action Bar extensively throughout my application, but I have an activity which inherits from a MapActivity, and thus I can't make it inherits from SherlockActivity.
Is there any way I can make use of the Sherlock Action Bar in…

noloman
- 11,411
- 20
- 82
- 129
8
votes
3 answers
'Uncaught exception thrown by finalizer' when opening MapActivity
I have these lines in my code:
// create tab4
intent = new Intent(this, ActWhereAmI.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
tabspecWhereAmI = tabHost
.newTabSpec("tab4")
…

Bob
- 22,810
- 38
- 143
- 225
6
votes
5 answers
Android My Location-Fix
When my map activity is called I make a call in the onCreate to addUserMapPoint. This function contains two instances where I try to get the location information using myOverlay.getMyLocation. On the initial load of this activity the result of the…

ItBHarsH
- 115
- 1
- 2
- 6
6
votes
1 answer
MapView in a listView item
I have an activity with a listView, where each item can be expanded when clicked, showing a mapView. If another item is clicked, the open item is closed.
The activity extends MapActivity, and there is only one instance of mapview, which I remove…

user1521459
- 61
- 3
5
votes
2 answers
MapActivity in TabHost Fragment disappearing after tab switch
I'm trying to display a map in a set of tabs, using fragments.
The problem I'm having is the map activity disappears if the user navigates to another fragment, then back.
How can I display a MapActivity in fragments in a tabhost?
The basis for this…

larsona1
- 280
- 3
- 6
5
votes
2 answers
Fire action on other activity within TabHost? (Android)
I am currently in an Android project where our main view is a TabActivity and each tab is a separate Activity. One is a MapActivity and the other two are ordinary Activities.
First note that I think we must have each tab as separate activities, as…

Emil
- 91
- 1
- 6
5
votes
1 answer
Does the first MapActivity instance always leak?
While investigating memory issues in our application, it turns out that if the application Activity is a MapActivity, the first instance of it won't be finalized. Leading to other memory leak such as the view passed to setContentView.
Does anyone…

david
- 1,311
- 12
- 32
5
votes
1 answer
Android MapActivity on map movement
I want to monitor when someone moves to another place on the map in a MapActivity but I have no idea how to do that. Maybe some sort of OnMapChange() listener?

Mats Hofman
- 7,060
- 6
- 33
- 48
5
votes
1 answer
Using mapfragment functionality offline
I am developing a tracking app, so I use the GPS data to draw a route + checkpoints in a canvas. The problem is, I developed zoom/drag+span in a SurfaceView and all the "lat-long to cartesian conversion", but it would be so much easy to do all this…

Sebastian Breit
- 6,137
- 1
- 35
- 53
4
votes
2 answers
MapView without MapActivity
I am writing this android application where in I have many activities that extend the Activity class. I also need an activity that uses MapView to show the Map along with a ListView in the screen (similar to rental house list where the houses are…

Neo
- 1,181
- 11
- 22
4
votes
3 answers
Map activity in android
I have created map actvity.But its not showing map on mapview.just showing blank blocks.
is there any solution?
activity_main.xml-

yuva ツ
- 3,707
- 9
- 50
- 78
4
votes
0 answers
Outsourcing map menu
I am using the android pie radial menu widget (http://code.google.com/p/radial-menu-widget/downloads/list - The v2 version) and to make the code more elegent I outsourced the menu code for a different class, problem is I am using the menu item on a…

crazyPixel
- 2,301
- 5
- 24
- 48