android-mapview

keytool error : java.lang.RuntimeException:error,–alias is not a legal command

痞子三分冷 提交于 2019-12-13 07:16:04
问题 when i try to get the md5 of my computer by the command "keytool -list –alias androiddebugkey –keystore d:\debug.keystore" , there comes with the error "keytool error : java.lang.RuntimeException:error,–alias is not a legal command" 回答1: If u r using eclipse, try using "Keytoool for Eclipse" . Hope it reduces the burden of getting MD5 key. FYI you need to use "keytool -v -list" instead of "keytool -list" if you need all the type keys(MD5 , SHA etc.,). 回答2: did you copy and paste the command?

Catch double tap events on new Google Maps Android API v2

喜欢而已 提交于 2019-12-13 06:44:08
问题 I have an app with a ViewSwitcher that has a MapView (v1) and another View and using a GestureDetector I can detect double taps and switch between the 2 views. Now I'm trying to switch the app to the new Google Maps Android API V2 and I have the problem that the GestureDetector set on the MapView no longer reacts to double taps, instead the map is zooming in. Does anyone know how to change that behaviour? I'm working with the raw MapView class, not the Map fragment. 回答1: Okay, I found a way

Other languages/locales in MapView (android)

一世执手 提交于 2019-12-13 05:19:42
问题 Can anyone tell me how to set the mapview object in android so it will display streetnames in other languages, such as hebrew? 回答1: After doing much research and playing around I found that the solution is extremely simple: in your MapActivity.onCreate method you can ovverride the default locale with one line of code, the following is for hebrew: Locale.setDefault(new Locale("iw","IL")); Thats it. I have verified this on my Evo 4g and nexus one. Please note that this changed the locale for

Problems trying to use Android Mapview classes

删除回忆录丶 提交于 2019-12-13 05:15:41
问题 I'm a noob to Android so bear with me and apologies if my post is moronic. Basically, I'm trying to add a mapview to the XML which is causing a few problems, the error I'm getting is: 06-30 12:29:04.760: ERROR/AndroidRuntime(320): java.lang.NoClassDefFoundError: package.android.mapclass From what I can tell the error is happening on this call: Intent i = new Intent(oldclass.this, mapclass.class); The mapclass itself is: package package.android; import android.app.Activity; import android

Not getting json data into mapview, getting blank map only [duplicate]

房东的猫 提交于 2019-12-13 04:48:10
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: android.os.NetworkOnMainThreadException i am fetching JSON data into MapView to show locations, but whenever i run my program not getting data into Map just getting blank map without json data, here i am placing my json data and Activity Code, please tell me where i am doing mistake { "maps": [ { "title": "Place One", "latitude" : "46.483742", "longitude" : "7.663157", "country": "Switzerland" }, { "title" :

Android Fragment - Application Crashed after Closing Application

柔情痞子 提交于 2019-12-13 04:23:48
问题 In my application I am using google map in fragment . I am using this code for adding fragment s. public void addPage(final BaseFragment pBaseFragment, final boolean isAddToBackStack){ FragmentTransaction transaction = mFragmentManager.beginTransaction(); transaction.add(R.id.content_frame, pBaseFragment); if (isAddToBackStack) transaction.addToBackStack(null); transaction.commit(); } In MyMapFragment I call this for removing map (If I don't do this I got duplicate id for map exception)

GoogleMap.setOnMapLoadedCallback is not called

心不动则不痛 提交于 2019-12-13 04:09:51
问题 I want to get location with using googleMap and geocode features. Place find my right latitude,longitude, formatted address. onMapReady function is called but onMapLoaded function is not called at all. Manifest: <meta-data android:name="com.google.android.geo.API_KEY" android:value="..." /> My google gms versions: implementation 'com.google.android.gms:play-services-auth:15.0.1' implementation 'com.google.android.gms:play-services-gcm:15.0.1' implementation 'com.google.android.gms:play

Android MapView zoom level doesn't exceed 19?

蓝咒 提交于 2019-12-13 02:59:16
问题 I am have just completed the hello-mapview tutorial and I am confused by the max zoom levels I can achieve. The documentation for the MapController class states that the zoom can go up to level 21 however I cannot seem to exceed 19. I also notice that the google Maps app from the market can go 2 extra zoom levels. Is there a way that I can get these extra two zoom levels? 回答1: I was just helped on the same topic so if you're still looking for the answer, just read this one here 回答2: Try using

MapView doesn't invalidate onProgressUpdated of Async Task

淺唱寂寞╮ 提交于 2019-12-13 02:57:34
问题 I'm using OSMdroid Mapview and using AsyncTask class to get some data, and I create overlays and try to redraw every time I get a msg. Unfortunately I'm able to get data from a client and I'm able to create overlays to in onProgressUpdated , I've even called invalidate(); But nothing seems to happen. Not sure what is the problem? Here's my AsyncTask : public class TaskManager extends AsyncTask<Void, GeoPoint, Void>{ ..... public TaskManager(Master master,MapView mapview) { //Construtor }

MKPolyline only shown when map is moved

末鹿安然 提交于 2019-12-13 02:45:16
问题 I have a MKMapView with some pins on it. I connect the pins with a MKPolyline view. But the MKPolyline is only shown when I move the map (when the MapView is updated?). I want to see the MKPolyline from the beginning on. Please inspect the following code: -(void)plotSnapPosition { for (id<MKAnnotation> annotation in myMapView.annotations) { [myMapView removeAnnotation:annotation]; } for (id<MKOverlay> overlay in myMapView.overlays) { [myMapView removeOverlay:overlay]; } NSArray *snaps = self