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
2 answers

FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.mtower.adha.ui.MapDetail

I'm working with googlemaps v2, firstly I get error "Couldn't get connection factory client" Android MapActivity googlemaps : Couldn't get connection factory client. And I try to fix it from some tutorial and now get error "FATAL EXCEPTION: main…
LeanDev
  • 251
  • 6
  • 19
0
votes
3 answers

Android MapActivity googlemaps : Couldn't get connection factory client

I'm working with googlemaps V2 and I've made my google api key V2. First time I run this program it's work and then when I run it again until this time, its always can't show the map and only coordinate that I give. And when I see the logcat the…
LeanDev
  • 251
  • 6
  • 19
0
votes
1 answer

Android GPS Not Turning Off When Activity Is Changed

I am experiencing a mass amount of battery consumption on one of my Android apps, and I believe it is due to the GPS being turned on, but never being turned off when a new activity starts. I am working with a code base that I inherited from someone…
Yahiko Kikikoto
  • 688
  • 3
  • 12
  • 23
0
votes
2 answers

java android IOException processing: 26

i m trying to connect to google map api using an MapActivity i've generate the key using keytool and i 've added it to google console 10-08 00:43:07.759: W/System.err(549): IOException processing: 26 10-08 00:43:07.769: W/System.err(549):…
Ayoub Arroub
  • 302
  • 2
  • 10
0
votes
1 answer

ActionBarCompat and MapActivity

I've successfully converted most of my app to use ActionBarCompat by extending ActionBarActivity on most activities, however... I have a MapActivity class and need this to work here as well. How would I go about creating a new class based on…
Brian Crider
  • 314
  • 3
  • 13
0
votes
1 answer

MapActivity: accessing MapController and LocationManager from OnClickListener

I am trying to implement a map with a button that will animate back to the user's current position. I am having a hard time trying to find a way to access my MapController from inside the OnClickListener. I have searched through SO but haven't…
rxdazn
  • 1,380
  • 1
  • 14
  • 30
0
votes
1 answer

Cant get Geopoints to add to google map due to; Couldn't get connection factory client

I am getting this error while try to plot multiple Geopoint locations onto a google map. I am reading the latitude and longitude from a MySQL database through PHP and JSON. I have looked at the main examples, such as Couldn't get connection factory…
jibbajava
  • 17
  • 1
  • 2
  • 6
0
votes
1 answer

Errors with google map in Android app

I got this error from log cat, I know this error is very common from what I search from google but I still can not fix it, is there anyone can help me? 03-16 01:41:45.760: D/memalloc(23825): ion: Mapped buffer base:0x54c92000 size:3768320 offset:0…
Duc Vu
  • 21
  • 1
  • 2
0
votes
2 answers

Invalidate content of UI in android

I have a MapActivity and a Spinner. On Spinner there is OnItemSelected event which makes a content change of view. so i applied setContentView again on event of spinner onItemSelected because i changed the var content which is actually containing…
Manmohan Badaya
  • 2,326
  • 1
  • 22
  • 35
0
votes
1 answer

Overlay not drawing on the right spot

I have an extremely weird issue. First of all, when I zoom in and out of a MapView, the marker (overlay) moves to incorrect places (doesn't work well with scaling). Secondly, the market is being drawn at the wrong position! I'll post code below but…
Asim
  • 6,962
  • 8
  • 38
  • 61
0
votes
1 answer

Insert Map into a fragment in Swipe-Tab aplication

I'm developing an app with tabs and swipe. In the tabs I load a fragment with text and images but, when I try to put a Map, It returns error. In the FragmentActivity I have this: public Fragment getItem(int position) { Fragment…
PlugInBoy
  • 979
  • 3
  • 13
  • 25
0
votes
2 answers

How to get text parts of wikipedia and use it at my android application

I wrote an app that displays my location in a popup on a map, and also other locations from a database. I want to get some information from Wikipedia and present portions of it as location information. But, I have no idea how to do this. I am new at…
srnty
  • 21
0
votes
1 answer

error when trying to load csvToGeoPoints

I need to collect gps point from a csv and create a list of geopoints so I'll be able to add them as overlays on my map. So I've come up with this piece of code that collects all the relevant points according to the type of garbage to recycle. I'm…
devdc
  • 161
  • 1
  • 4
  • 13
0
votes
2 answers

MapView coordinates wrong

When I'm placing pins in MapView by using ItemizedOverlay on my Android 2.2 phone, the placement is right, but when I does it on my 4.0 and 4.1 phones, the placement is wrong. The pin is placed further down on the map, but with the same…
barto90
  • 679
  • 1
  • 9
  • 27
0
votes
2 answers

Set an onClickListener method in a MapActivity?

Until now, I always draw "points" in the MapActivities with OverlayItems and with a class Point made by me. With this method I can draw some "points" in the MapActivity. But how I can draw "clickable" points ?? I improvise this class Point, and…
joanlopez
  • 579
  • 1
  • 6
  • 17