android-mapview

Keytool alias does not exist

試著忘記壹切 提交于 2019-11-27 08:54:13
I am trying to get my debug.keystore md5 key so I can get the API key for Google Maps. I run the command: keytool –genkeypair -alias armand -keypass pass And then running the command: keytool -list -alias armand -keystore debug.keystore I then enter my password and it gives me the following error: keytool error: java.lang.Exception: Alias <armand> does not exist What am I doing wrong? Nikunj Patel This is right a way to get key: To get certificate fingerprint (MD5) follow the steps below: You need to get the keystore file for getting the certificate fingerprint (MD5). Your keystore file can be

android MapView in Fragment

ぐ巨炮叔叔 提交于 2019-11-27 07:06:33
I want to have MapView inside my Fragment This is my FragmentLayout xml file <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#17df0d" android:orientation="vertical" > <com.google.android.gms.maps.MapView android:id="@+id/mapview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/textView1" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout

Where is the Keytool application?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 06:56:18
I need to use mapview control in android and I can't seem to understand how to run keytool . Is it installed with eclipse? I can't seem to find a download link. Thanks biziclop keytool is part of the standard java distribution. In a windows 64-bit machine, you would normally find the jdk at C:\Program Files\Java\jdk1.8.0_121\bin It is used for managing keys and certificates you can sign things with, in your case, probably a jar file. If you provide more details of what you need to do, we could probably give you a more specific answer. evandrix keytool is a tool to manage key and certificates.

Error Inflating class com.google.android.maps.MapView

三世轮回 提交于 2019-11-27 05:24:22
i am just following a simple map tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html but getting this error . I am new to android i tried to follow all the solution provided over the internet but no success yet. Please help me. My main .xml is below <?xml version="1.0" encoding="utf-8"?> <com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:apiKey="***" /> and manifestfile is this I had this

Relocate Google logo in MapView

强颜欢笑 提交于 2019-11-27 04:29:57
I have two buttons at each bottom corners of the MapView , partly obscuring the google logo in the bottom-left corner. In order to comply with the terms and conditions of the API, I need to relocate the google logo to somewhere more visible. i.e. above the button. The google API doc states that the google logo is drawn in the onDraw() method of MapView but I have no idea how to override it properly since google maps is closed source. I could do this in iPhone by finding the correct UIView in the MKMapView's children but I can't figure out how I could do this in Android. Google Maps SDK v2 for

How to get the Latitude and Longitude on Map in Android?

给你一囗甜甜゛ 提交于 2019-11-27 03:53:31
问题 How can I get the Latitude and Longitude values of a particular location that I have long clicked on the map in Android? 回答1: For the long click, I suggest you check out http://www.kind-kristiansen.no/2010/handling-longpresslongclick-in-mapactivity/. This will go into detail on how to listen for long click events within the Maps API since there is little or no built-in functionality that I know of. As for the lat/lng code, after you get the long click you can translate the pixels to

Adding rounded corners to a mapview

那年仲夏 提交于 2019-11-27 03:46:16
问题 I'm trying to code a simple MapActivity which uses the following layout (only contains the mapview for the moment, as I plan to add share the screen with a ListView in the future) : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="200dip"

Unrecognized Error in MapView (iOS)

做~自己de王妃 提交于 2019-11-27 03:38:49
问题 I'm getting an error in MapView that I don't recognize and can't find documentation on. It looks like this: CoreAnimation: ignoring exception: Invalid Region <center:-180.00000000, -180.00000000 span:+2.81462803, +28.12500000> Obviously the numbers are exclusive to my code right now but I can't figure out what's going on. The MapView runs just fine and all of my annotations show up (and it zooms on the user's location like I have it set). What specifically does this point to? Thanks. Here's

Android - drawing path as overlay on MapView

*爱你&永不变心* 提交于 2019-11-27 03:36:31
问题 I have a class that extends Overlay and implemments Overlay.Snappable. I have overriden its draw method: @Override public void draw(Canvas canvas, MapView mv, boolean shadow) { Projection projection = mv.getProjection(); ArrayList<GeoPoint> geoPoints = new ArrayList<GeoPoint>(); //Creating geopoints - ommited for readability Path p = new Path(); for (int i = 0; i < geoPoints.size(); i++) { if (i == geoPoints.size() - 1) { break; } Point from = new Point(); Point to = new Point(); projection

iOS - How to limit the MapView to a specific region?

让人想犯罪 __ 提交于 2019-11-27 03:06:37
I have the following problem: I have a "drawn map" (image) which I add to the MapView as an Overlay. No Problem with that.. but I need to limit the MapView to the region of the Overlay, so a user isn't able to scroll/zoom outside of this region.. but it should be possible to scroll/zoom inside the "bounds" of the overlay - means I cannot just disable zoom/scrolling for the MapView. Are there any ideas/solution on this topic? The reason for using the MapView/-Kit is that I need to add various POIs to the custom map. This may become more complex when just using an ImageView+ScrollView for