Questions tagged [mapactivity]

An Android base class with code to manage the boring necessities of any activity that displays a MapView.

192 questions
0
votes
1 answer

How to change view between "main.xml" and "main2.xml" with buttons in mapActivity

I have 2 layouts named "main.xml" and "main2.xml" In main.xml, there's a button "new" In main2.xml, there's a button "back" button new: Button button1 = (Button)findViewById(R.id.newstore); button1.setOnClickListener(new…
范植勝
  • 787
  • 2
  • 6
  • 14
0
votes
1 answer

MapActivity instance management

I have a MapActivity subclass and I want to preserve the stack, but I can't keep multiple instances of a MapActivity in the same process. So I have come up with 2 schemes to achieve this: Pass the state of the MapActivity along with any intents it…
JPvdMerwe
  • 3,328
  • 3
  • 27
  • 32
0
votes
2 answers

Can you have multiple subclasses of MapActivity?

I know you can't have multiple instances in the same process, but is it at all possible to have multiple subclasses of MapActivity, so I don't have a lot of if-else statements and otherwise have overly huge classes? And before anyone asks, I don't…
JPvdMerwe
  • 3,328
  • 3
  • 27
  • 32
0
votes
1 answer

Cannot launch new MapActivity

I've been trying to create what I would have imagined would be a rather simple application - on the start activity, there is a button to press and that will then launch a MapActivity displaying your current location. However, whenever I press the…
shamsad97
  • 291
  • 2
  • 5
  • 10
0
votes
2 answers

how to start a MapActvity from Activity

i'm trying to start a map activity from a normal Activity. But keep getting the error: 10-20 10:47:08.828: ERROR/dalvikvm(1102): Could not find class 'com.xxApp.MapAnalyseActivity', referenced from method com.xxApp.xxAppActivity$1.run 10-20…
Luciano
  • 2,691
  • 4
  • 38
  • 64
0
votes
2 answers

Why does my android app shows google map with small boxes over the map?

I am working on an android app. It was working correctly before but then I had to re-install my machine and I lost my debug.keystore. So I generated a new api key for the new debug.keystore but now I see map but with small grey boxes over the map.…
binW
  • 13,220
  • 11
  • 56
  • 69
0
votes
0 answers

Android studio maps activity design is not appearing

enter image description hereI am a beginner in android development. I created a new project with maps activity. I took google maps key and tried starting the project. i have observed that I cannot have seen design of maps activity. in addition to I…
0
votes
0 answers

google_map_api file not showing after creating Map Activity

google_maps_api.xml file, but it didn't create one for me I am working on an Android app in which I have created a new Map Activity, it was supposed to create a google_maps_api.xml file, but it didn't create one for me :(
0
votes
1 answer

Android MapActivity cannot retrieve location data

I have followed the HelloMapView tutorial for android, and added some code to capture my current location information and display in a textview. I have tested these code in another program and it worked, it is able to display my longitude and…
phatez
  • 199
  • 1
  • 3
  • 13
0
votes
1 answer

Where should I write code to dismiss ProgressDialog after map image data on mapview is completed?

I set up ProgressDialog right after setContentView to pop ProgressDialog up. After it's completed map image data on mapview, I wanna call method to dismiss ProgressDialog. I wanna know where should I write the code to dismiss it. I've written these…
0
votes
2 answers

Please help: android.view.InflateException: Binary XML file line #3: Error inflating class com.google.android.maps.MapView

I wrote the Get Point application (https://market.android.com/details?id=jv.android.getpoint&feature=search_result) to store GPS coordinates and export a KML file to be opened in Google Earth. That application was created because I need to learn the…
Joubert Vasconcelos
  • 550
  • 1
  • 7
  • 22
0
votes
1 answer

Facing problem while importing MapActivity

Iam new to android. I got a example for accessing google maps from some link. I got MapActivity to import in to project. Where i got error. am not able to import that tried all ways.Can any one suggest me the problem. thanks in advance
radha
  • 175
  • 5
  • 13
0
votes
1 answer

Android MapActivity - Grid

I have a developed app with a MapActivity. The app works great when I install it via USB to my phone, but I've exported the APK to some others and they only get the grid. What causes this? Thanks!
RedLeader
  • 657
  • 1
  • 15
  • 28
0
votes
1 answer

Android MapActivity onTap event

I have a MapActivity and Map pins are displayed using ItemizedOverlay. I want to transfer onTap event to MapActivity. (onTap function is present in ItemizedOverlay class). How this can be done?
sach
  • 1,069
  • 4
  • 15
  • 29
0
votes
1 answer

AlertDialog Show Problem In A Class Which Extends ItemizedOverlay

i am using MapActivity in my application to show map and for that i have a class named MapItemizedOverlay which extends ItemizedOverlay. I added an AlertDialog on onTap() function of MapItemizedOverlay class. After running the application, when i…
Junaid
  • 1,179
  • 2
  • 18
  • 35