Questions tagged [mapactivity]

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

192 questions
3
votes
2 answers

updating google maps marker from a broadcast sms receiver

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…
2
votes
1 answer

Creating an SQLite Database to store Geopoints and read them onto MapActivity

i am trying to create a Map Activity and i have been able to successfully have a static string of coordinates to be read from the main activity, however this is hard coded and i wish you insert these coordinates into an SQLite Database and for them…
Ibz786
  • 23
  • 1
  • 5
2
votes
1 answer

How to use a single MapView across several MapActivities

I'm developing an app that shows a map on three different MapActivities. To accomplish this I re-use a MapFragment across this three FragmentActivities which extend MapActivities using the Pete Doyle's port of the Android Compatibility package. The…
2
votes
1 answer

PhoneGap on Android : I have a bad information flow between HTML <-> JS <-> PlugIn <-> Activity

I've got a problem... (Really? :-) ) What I want to do? I need to make a native plugin to launch a MapActivity (to show POI, show itineraries, ...), and when the mapView is closed with some conditions, I have to load a particular html page. So…
2
votes
1 answer

How can I embed a custom streetview in android app?

I know this is the way to start a street view Intent: String uriString = "google.streetview:cbll=44.640381,-63.575911&cbp=1,90,,0,1.0"; Uri uri = Uri.parse(uriString); startActivity(new Intent(Intent.ACTION_VIEW, uri)); What I want to do is to…
Ken Tsang
  • 61
  • 5
2
votes
2 answers

How to animate to other position that center map

I have an activity that extends MapActivity, and inside onCreate() I have this code GeoPoint point = new GeoPoint((int)(1.3*1E6),(int)(34.45*1E6)); final MapController mc; mc.animateTo(point); that animates, to that point, however, when it…
Ovidiu Birgu
  • 439
  • 2
  • 6
  • 24
2
votes
1 answer

How to show GoogleMap inside ConstraintLayout?

I created a new project "MapsActivity". I got my API key from Google, placed the API key in google_maps_API.xml(debug) inside the YOUR_KEY_HERE area. I see in AndroidManifest it's there. Then I go to build/run the app and it crashes. I didn't even…
2
votes
0 answers

Map Activity ANR Issue

I have a navigation drawer activity. At onCreate, i have created a MapFragment using fragment transaction. Fragment fragment = null; String newttitl = "TEST"; fragment = new MapFragment(); FragmentManager fragmentManager…
2
votes
0 answers

Geting the lat long from server but receving a null value instead. Receiving JSON response is null

I am retrieving lat long values from a server but when I'm getting the JSON its giving me a null value. this my code where it gets the JSON private void getJSON(String url) { class GetJSON extends AsyncTask{ …
ErlAl
  • 439
  • 1
  • 7
  • 13
2
votes
1 answer

How to place Multiple MapViews v1 inside a ViewFlipper

Objective- I want to show slide shows of different Map Activities which show data according to database, using view flipper(or something similar). Issues: View Flipper can't be added to an Activity that is not a MapActivity if flipper contains a…
Rachita Nanda
  • 4,509
  • 9
  • 42
  • 66
2
votes
2 answers

How to handle exceptions in super.onCreate?

Is there a safe way to handle an exception thrown by super.onCreate(savedInstanceState)? A very small number of my users are hitting this error java.lang.NoClassDefFoundError - android.security.MessageDigest The causes are discussed in this…
Dan J
  • 25,433
  • 17
  • 100
  • 173
2
votes
2 answers

Android MapActivity of mapsforge in tab

I tried to use MapActivity as tab but I always got an exception: Generates Could not find class exception. when tried to create Intent mapTabIntent = new Intent(this, MapMF.class); Why I got an exception? As I analysed the rows of LogCat I…
L. Kvri
  • 1,456
  • 4
  • 23
  • 41
2
votes
2 answers

Android: ClassNotFoundException when running ActionBarSherlock-Plugin-Maps

I am trying to setup an example project that uses Jake Wharton's ActionBarSherlock with ActionBarSherlock-Plugin-Maps. I follow the instructions here and here. I do not necessarily need Fragments. Here is the simple class I created. package…
JJD
  • 50,076
  • 60
  • 203
  • 339
2
votes
1 answer

GreenDroid and MapActivity

plz how i can use greendroid library with MapActivity public class GreendroidTestActivity extends GDActivity MapActivity
1
vote
3 answers

MapActivity "couldn't get connection factory client"

I'm programming a Google Maps based Android application. The application itself runs fine, without any issues. I can see the map, zoom to my current location etc. etc. All permissions should be fine according to the AndroidManifest.xml. I also have…
hrhldt
  • 13
  • 1
  • 5
1 2
3
12 13