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
3 answers
Force Close for mapController?
I have a strange problem. I want to display on map a certain location. The problem is that sometimes everything works fine, but sometimes I get force close and in DDMS I get :
06-03 18:24:14.171: ERROR/AndroidRuntime(2228): at…

Gaby
- 1,329
- 2
- 12
- 17
1
vote
3 answers
How to make MapActivity in TabActivity wait for Overlay data to be obtained from server?
So, in my program i have a TabActivity which contains two tabs, one tab is a ListView and another is a MapActivity that gets started via an Intent. What i want my app to do is send a query with phones location and the name of a product and reveice a…

boogieman
- 567
- 2
- 5
- 10
1
vote
1 answer
ConcurrentModificationException using mylocation overlay and timer
this problem has been doing my head in and I hope you can help! I've found the answers to a number of issues here before and hoping you people can work your magic again :)
Ok so part of my app uses the Google Maps API to display an overlay on the…

RadicalMonkey
- 23
- 2
- 5
1
vote
1 answer
Simulating a Bus Journey in a MapActivity
I am fairly new to Android and am looking for some help.
I have a simple MapActivity and a vector of Stops(lat,long) with an ItemizedOverlay placed on each stop. I know the distance between each stop and the speed at which the bus will be…

user686130
- 11
- 1
1
vote
1 answer
How can I center my MapView on initial load only?
I'm working on an Android application with a MapActivity and I'm having trouble managing the MapView state in an appropriate manner.
Basically I have an activity that starts the MapActivity when it exits and at this point I need to center the map. …

NightWatchman
- 1,217
- 5
- 17
- 25
1
vote
1 answer
How to add a ProgressBar and a button underneath a marker
I would like to add a button and a progress bar underneath every marker in my map.
Let me show you my map:
[
Here you are the method I use to spawn 5 different markers (in my code they are the enemies):
public void spawnEnemies(Location…

Eminent Emperor Penguin
- 835
- 1
- 7
- 21
1
vote
2 answers
android activity "loaded event"
I have a mapactivity and when I switch over to it it takes some time before it appears because it loads the map and animates to the specific location.
does activity have some sort of finished loading event ao i can do the map initialization…

Amit Raz
- 5,370
- 8
- 36
- 63
1
vote
0 answers
Android: Google API map problem
I am using Google Maps API level 7 (which corresponds to Android 2.1) to display a map on my app. The code displays the map perfectly when I run it using Android 1.1, but when I run it using Google Maps API 7, I only see X's all over the place. I…

user522559
- 239
- 5
- 13
1
vote
0 answers
How to find which process is blocking Android MapFragment UI Thread
Whenever i open an intent, then presses back sometimes give ANR. Which means something is blocking my UI Thread. How to handle this. Can i start my activity on a separate thread. Even though it's a single threaded model

Visal Varghese
- 436
- 5
- 14
1
vote
1 answer
Error in getMap() Function
I am simply creating a Map Project and executing this code. But there is getMap() error.
I have tried some example code from internet but there is also same error in getMap() function. The Code is :
private GoogleMap mMap;
static final…

Violet
- 47
- 12
1
vote
0 answers
How to use retrofit to parse json data from a weblink into a map activity in android
I have been reading about retrofit and how it is a better alternative then the traditional way of parsing JSON data. I wanted to know if someone could give me an example on how to parse JSON data from a url or website and add markers to a map…

user6020197
- 121
- 2
- 11
1
vote
1 answer
Android: Call MapActivity Mapquest from Activity class
Friends!
I can't call MapActivity from other activity :
Intent nextScreen = new Intent(getApplicationContext(), MapScreen.class);
startActivity(nextScreen);
Where MapScreen.class is a public class MapScreen extends MapActivity
the error message…

Rod Barrientos
- 23
- 4
1
vote
1 answer
Api key android make "couldn't get connection factory client"?
i'am really beginner in android. i want to ask some questions. thank you for answer :)
how we know if our API key doesn't match with our keystore
which one i must to use Sha1 or Md5 to get my API key in google console? because some blog or…

LeanDev
- 251
- 6
- 19
1
vote
0 answers
Where can I find a current version of FragmentMapActivity?
I've been reading rumors of a FragmentMapActivity class, but I can't find code for it that seems recent enough to handle the current API.

KairisCharm
- 1,363
- 1
- 13
- 32
1
vote
2 answers
Unfortunately myAndroidapp has stopped . App include maps
I am trying to build a google map app on my android device. It was working fine but lately it has been giving error.
The app gives error FATAL:MAIN. I am posting the code and the log errors file. Please help me through this.
Is there any problem…

user2365029
- 13
- 2