An Android base class with code to manage the boring necessities of any activity that displays a MapView.
Questions tagged [mapactivity]
192 questions
1
vote
1 answer
getting a curious NullPointerException when i want to switch from an Activity to a MapActivity
i gain a NullPointerException when i try to switch to a MapActivity.
I´m getting it at the super.oncreate(savedInstanceState); call, which has to be the first line in the public void onCreate(Bundle savedInstanceState) method. In the debugger i can…

CAA
- 968
- 10
- 27
1
vote
1 answer
MyLocationOverlay.enableCompass() stopped working on Google Map API 7 and 8
Arg.. This is frustrating:
All of a sudden (March 2012) MyLocationOverlay.enableCompass does not work. It works okay using Google APIs 14, but is leaves the screen all black on Google APIs 7 and Google APIs 8.
I would like to keep the compass…

JJ Stiff
- 158
- 8
1
vote
2 answers
How to extend activity from MapActivity in Android using MOTODEV?
I am using MotoDev Studio for Android Development and I am trying to Extend my Activity from MapActivity. But MotoDev does not Allow me to do this.
Can any One Tell me why this is so?
On the other hand in Eclipse this is possible for me using Google…

salman khalid
- 4,884
- 4
- 27
- 33
1
vote
1 answer
Android with GoogleMap About mapActivity
As we all know, if we want to use google maps api. We can use target:Google apis;
But some rom just my moblie phone that has no google map.
If i use mapActivity it will tell me "class not found".
And it work well in another Phone. (It ensure my code…

Foreverzeus
- 11
- 2
1
vote
0 answers
Android mapview with setcontent()
Question about the map view.
Ive got simple MapActivity, at first is just the list with details, each category leads you to mapview, but it not open new intent, instead change current activity by "setContentView".
Issue is when I show mapview,…

goodm
- 7,275
- 6
- 31
- 55
1
vote
3 answers
Android share location service between multiple map activities
I'm writing an application with 3 mapactivities, and i've implemended a local service(like google tutorial) that recives update from location manager, to share location data from gps between these activities.
Now i want to put every activity in…

IncioDev
- 11
- 4
1
vote
2 answers
Using Android MapView without the MapActivity?
I'm in the process of encapsulating Android features and services, and I was trying to find the code of the MapActivity of Android to see how it is managing the MapView it contains, in order to implement this out side of this darn MapActivity which…

TacB0sS
- 10,106
- 12
- 75
- 118
1
vote
1 answer
How can I change an overlay's icon from Android's MapView class?
I'm working on a map in Android, with several overlay icons covering it. My problem is that each overlay's icon is static and does not resize with the rest of the map when zooming in and out. This can become awkward if the user zooms too far in or…

dwat
- 312
- 2
- 6
- 14
1
vote
2 answers
How to include the GoogleMaps.apk file while extending MapActivity
I need a help, In my eclipse, I have extended MapActivity to display google maps. Now if i run my program, there exists an error that
[2011-08-27 18:47:42 - GoogleMaps] Could not find GoogleMaps.apk!
and i dont have any other errors in…

Pattabi Raman
- 5,814
- 10
- 39
- 60
1
vote
2 answers
Views in a RelativeLayout with MapView are null
I have a MapActivity with a mapview. It works fine. Now I want to add a SeekBar onto my MapView. It has to be at the bottom but on the mapview. User will scroll to set the distance. Whatever. My problem is, that any view I am trying to put there is…

Genom
- 207
- 1
- 12
1
vote
1 answer
Map view and get variables on MapItemizedOverlay Activity
I have MapView on my android application. I have a GoogleMapsActivity where I get coords to display on a map.
GeoPoint point = new GeoPoint((int) (lat * 1E6),(int) (lng * 1E6));
OverlayItem overlayitem = new OverlayItem(point, "title",…

Pipeline
- 567
- 1
- 8
- 23
1
vote
1 answer
Android: How to show my custom view over my MapActivity without xml?
I have some small graphs on display over mapactivity. And when one of these graphs are clicked want to show up detailed graph with transparency over the google map.
So I have class "myCusomGraphView extends View{...}" and I want to display it over…

alkonyah
- 11
- 1
1
vote
3 answers
Android mapview partially loading tiles
I have built an android application which has a single mapview.
I have a bug where the map view occasionally has missing tiles. The map view is not completely blank some tiles appear but not all of them. All the answers here relate to API Keys…

railwayparade
- 5,154
- 1
- 39
- 49
1
vote
2 answers
Creating library project in Android with MapActivity and using that in another project?
I have created a project as library that uses MapActivity but when it is referenced in another project it cannot link with that project. But if the same project is used with only Activity then everything works properly. The project is linked…

sunil
- 9,541
- 18
- 66
- 88
1
vote
2 answers
Draw the route between 2 overlays
In my app I displayed on map 2 locations and I marked them with a marker. Now, I want to draw the route between them,and I don't know how can I do this. How should my function draw look like?
This is my code:
package com.ShoppingList.Maps;
import…

Gabrielle
- 4,933
- 13
- 62
- 122