mapactivity

MapView without MapActivity

纵饮孤独 提交于 2019-11-30 08:46:41
问题 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 shown using pins on the map) Since I have a base class which extends the Activity class, all the other activities extend that base class. Only that particular screen which has the map needs to extend the MapActivity class. When I try doing that I am

android: MapView does not recognize clicks

◇◆丶佛笑我妖孽 提交于 2019-11-30 07:42:36
问题 I simply want a mapview to recognize a click, in order to call another activity. Until now, i tried the regular "onClick",that always worked for me in regular Views, followed by overriding "onTouchEvent" and last but not least using an onClickListener. I out all three ways into the following code. Any help is highly appreciated. import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; import android.view.MotionEvent; import android.view

MapView without MapActivity

岁酱吖の 提交于 2019-11-29 07:49:56
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 shown using pins on the map) Since I have a base class which extends the Activity class, all the other activities extend that base class. Only that particular screen which has the map needs to extend the MapActivity class. When I try doing that I am thrown a IllegalAccessError Exception. Project setup - Android 2.1-update1 and GoogleAPI 2.1-update 1

updating google maps marker from a broadcast sms receiver

断了今生、忘了曾经 提交于 2019-11-29 05:12:42
I am a newbie to android and java. I am trying to make an application to perform following task. receive incoming sms (which will have latitude and longitude information) show them on map with markers So every time an sms comes map should get a new marker. currently I have a map where I can show a point and I have implemented a broadcast receiver to get lattitude and longitude form SMS. But I am unsure how to update the map from broadcast receiver on receiving a new sms. Any help or tips will be useful. Thank you It sounds like you are looking for detail on how to communicate between your

Android MapActivity on map movement

社会主义新天地 提交于 2019-11-28 04:10:00
问题 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? 回答1: You can extend the MapView class to add the necessary map change event. http://bricolsoftconsulting.com/extending-mapview-to-add-a-change-event/ The post above shows you how to detect zooming and panning via virtually every way you can interact with the map: swipe (for pan), zoom control +/- (for zooming) and pinch (for combined

Android MapActivity : Couldn't get connection factory client

∥☆過路亽.° 提交于 2019-11-26 22:41:40
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 on app start up, and can zoom in etc - so I am getting the map tiles, fine. Yes - I have the correct permissions and library set in the Manifest file (as per samples). But, I cannot set a location on the map, either via DDMS or Telnet. I see the following error in LogCat: MapActivity : Couldn't get connection factory client I've read numerous threads

Android MapActivity : Couldn't get connection factory client

那年仲夏 提交于 2019-11-26 08:25:05
问题 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 on app start up, and can zoom in etc - so I am getting the map tiles, fine. Yes - I have the correct permissions and library set in the Manifest file (as per samples). But, I cannot set a location on the map, either via DDMS or Telnet. I see the