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

Android MapView marker shadows move after activity resumes

I have a MapView, with various markers on it. On entering the MapActivity the first time, I set the bounds of drawables set on the markers, and everything appears fine. The markers and shadows all appear correctly. But when I click over to another…
broadbear
  • 614
  • 8
  • 19
0
votes
1 answer

MapActivity class for jelly bean

In a test app I am making for jelly bean it seems that the MapActivity class is throwing a Class not Found exception for my code. As soon as all use of MapActivity is removed the app works. Here the code. This keeps crashing with Class not found.…
Amit
  • 3,952
  • 7
  • 46
  • 80
0
votes
2 answers

Deprecated SensorManager API Google Map

I'm using a MapActivity from my project. I have this onCreate method on main class : public class TabMap extends MapActivity implements LocationListener { private MapView mapView; private MapController mc; private LocationManager…
eento
  • 761
  • 4
  • 20
  • 53
0
votes
1 answer

want to draw a line between any two location in android

This is my main activity import java.net.HttpURLConnection; import java.net.URL; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; import…
0
votes
0 answers

the questions is related to routemap path names displaying

package com.hands; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; import…
KAREEM MAHAMMED
  • 1,675
  • 14
  • 38
0
votes
2 answers

Embedding Map Activity in another activity in Android

I would like to make the google maps viewable in another activity, that is, it does not take the entire screen. Is it possible to embed a google map map activty in another activity, so that, let's say, it takes half or 3/4 of the screen…
William
  • 55
  • 1
  • 8
0
votes
1 answer

MapActivity with TabHost fragment

I'm iOS guy try to move to Android, I need someone to explain/help me what should I do in this situation. I have an app with tabhost fragment(3 tabs). At this moment, I just load 3 different simple fragments, it works fine. Now, I want to implement…
JHHoang
  • 653
  • 1
  • 8
  • 22
0
votes
1 answer

onPause() function does not work when extend MapActivity

When I extend MapActivity instead of Activity, I can not use onPause(), onResume(), onRestart() functions. When I create protected void onPause(), there is an error for force close when I click home button. I tried ActivityGroup and it doesn't work…
irukeru
  • 509
  • 1
  • 10
  • 26
0
votes
1 answer

MapView / MapActivity crashes onBackPressed by Child Activity

I am trying to create an informational Activity, which displays a location on google's MapView among other things. Whenever I navigate through this MapActivity, then click the back button, I get the following error: "... Caused by:…
user1336543
  • 185
  • 1
  • 6
0
votes
2 answers

How to start a map activity in background and see it when needed in android?

I am making an android app. I have a main activity and i want to show distance and speed on main activity. But there is a button View Map on main activity as well. If user clicks it then he/she should see his/her travelled track on map. User should…
Piscean
  • 3,069
  • 12
  • 47
  • 96
0
votes
1 answer

java.lang.IllegalArgumentException: InputStream cannot be null

When i use this code to find the distance between two geo points and draw path between them, i get this exception java.lang.IllegalArgumentException: InputStream cannot be null public class MapRouteActivity extends MapActivity { LinearLayout…
Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226
0
votes
2 answers

Google map in separate activity resulting in: java.lang.IllegalStateException: Could not execute method of the activity

Im having some trouble accessing Hello Mapview at the moment, http://developer.android.com/training/tutorials/views/hello-mapview.html, but i think ive done this correctly. I want to show a map in a separate activity. Map.xml:
Johan
  • 35,120
  • 54
  • 178
  • 293
0
votes
1 answer

Marking overlay icon as "selected" without changing icon

I have an android mapActivity which displays icons on the map using ItemizedOverlays. If a user taps on an Icon, I want the user to see the icon as "selected" (making it transparent for example, or something of that sort). Is there a way to do it…
Eddie Dovzhik
  • 297
  • 1
  • 6
  • 14
0
votes
2 answers

I have a tabactivity class but I need to have google map under one tab without extending the class as MapActivity

I have already coded an app with a class which is extending tabactivty, but under one of the tabs I need to have a google map, but I don't want to extend the class with MapActivity, is there any way t use map rather than extending the main class…
Zardaloop
  • 1,594
  • 5
  • 22
  • 43
0
votes
1 answer

Mono for Android: Reverse GeoCoding Current Location

Using the MyLocationOverlay I get the current GeoPoint of the user. myLocationOverlay.RunOnFirstFix (() => { mapView.Controller.AnimateTo (myLocationOverlay.MyLocation); RunOnUiThread (() => { …
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
1 2 3
12
13