android-mapview

Default marker for android google MAPVIEW?

[亡魂溺海] 提交于 2019-12-05 22:55:16
问题 Just wondering if there is a standard/default overlay/marker that I can use in the MAPVIEW? I have been searching on the web and all tutorials talk about extending the Overlay and put your custom image on it. Is there a easier way? I just want to have a marker, nothing fancy. Regards James 回答1: If you are using Eclipse as your IDE, you can add a .png, for example, to your /drawable-hdpi, /drawable-ldpi, /drawable-mdpi directories. You can then place and obtain a list of references to your

MapView showing in grey tiles map not showing in android google api 2.3.3

╄→尐↘猪︶ㄣ 提交于 2019-12-05 21:25:34
Hello I am developing a map view I tried to following way I created an "Intent" by clicking on a button]. Added permission and library . I created an overlay item. .My Emulator is targeted as GoogleApi 2.3.3 .My MapView key is obdained and asigned into mapview.xml I am seeing the map with a google logo at bottom and map view controler: here is my code MapView.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <view android:id

For Android Map api v2 Description references non existing library google-play-services_lib\bin\google-play-services_lib.jar

早过忘川 提交于 2019-12-05 16:48:51
问题 I have import google-play-services_lib into my workspace and Add google project into MYProject it give mr error: Description Resource Path Location Type The container 'Android Dependencies' references non existing library 'D:\Android Workspace\google-play-services_lib\bin\google-play-services_lib.jar' HBuddy Build path Build Path Problem Description Resource Path Location Type The project cannot be built until build path errors are resolved HBuddy Unknown Java Problem and I have already

Maps v2 marker animation - fade in and out

十年热恋 提交于 2019-12-05 12:30:40
How would one fade in and out a GoogleMap marker ? This is how I add a marker to the Map: marker = map.addMarker(new MarkerOptions() .position(point) .title(title) .snippet(text) .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker)) ); MaciejGórski With Google Play services 4.0+ you can use Marker.setAlpha in conjunction with Handler that posts some Runnable every few milliseconds. The code will be similar to my answer here Drop marker slowly from top of screen to location on android map V2 . Just setAlpha instead of setPosition and you are on your way home. A much simpler and cleaner

How to determine a long touch on android?

◇◆丶佛笑我妖孽 提交于 2019-12-05 11:29:19
问题 I am looking for a way for when a user long touches a mapview (lets say for 1000ms) that i can some how do a certain action. How would i go about judging how long a user long touches a mapsview(or any view). It would be similar to android google maps app, when you long touch, it brings up a balloon overlay item. Edit added mapView.setOnLongClickListener(new View.OnLongClickListener() { public boolean onLongClick(View v) { Toast.makeText(mapView.getContext(), "Hello 123", 2000); return false;

Unexplained IncompatibleClassChangeError In Stable Released App Caused by GoogleMaps

风流意气都作罢 提交于 2019-12-05 10:40:35
I have just received this strange crash report from a user in my Google Play Developer Console. The app is stable at the moment and this is the first time I have seen this crash. It has been in release for 3/4 months now. The device was a Galaxy S5 running Android Version 5.0. My initial thoughts is Google Play Services has updated causing issues. Any better offers? java.lang.IncompatibleClassChangeError: Class 'java.lang.reflect.ArtMethod' does not implement interface 'android.os.Parcelable$Creator' in call to 'java.lang.Object android.os.Parcelable$Creator.createFromParcel(android.os.Parcel)

open street maps (osmdroid) shows grey tiles not map in PC

我的未来我决定 提交于 2019-12-05 08:31:11
I am using osmdroid to get open Street maps in my app. I had build my project with the needed jars (osmdroid) and added all needed permissions in the manifest. But when I try to debug my app in android emulator (adt eclipse) I am not able to see the map, only grey tiles. My project is working fine because if I debug in a smartphone I am able to see the map, the problem is only with the emulator. I have done some research but I only found information of google maps solutions but not open street maps (osmdroid). Does somebody know how to solve this issue? this is how I show the map in xml file

“MapFragment cannot be resolved to a type” even though I am on API level 17

烂漫一生 提交于 2019-12-05 08:11:16
I just started using MapFragments, and I can get the Map to show in my Activity. I just use a simple XML-layout, and it works as expected: Now, I need to get the Fragment in code, so I can start interacting with the Map. This is where I run into problems: As you can see, the MapFragment (or getFragmentManager) cannot be resolved to a type. I am targeting Android 4, API level 17: and you can also see that I am referencing the Googke Play library. Here is the Manifest, just for clarity: So, the big question is: why can't I resolve MapFragment? What am I missing? As a side note:

Mapview in MapActivity Class not found

夙愿已清 提交于 2019-12-05 07:52:34
I've seen other threads here with similar symptoms, but none of the answers solved my problem. I'm following the Google map view tutorial, http://developer.android.com/resources/tutorials/views/hello-mapview.html and following all directions exactly, I keep getting this error .. java.lang.ClassNotFoundException: com.goodintechnology.maps.Mymap in loader dalvik.system.PathClassLoader[/data/app/com.goodintechnology.maps-1.apk] I've started from scratch many times, but everytime, as soon as I change the Activity to MapActivity, the error is thrown. The app target is Google API 2.2, and the

android mapview not working

…衆ロ難τιáo~ 提交于 2019-12-05 07:22:47
问题 This is killing me!!! I seem to have done all I need to do but it just wont work! here is what i did: -created a keystore using keytool: $ keytool -genkey -v -keystore PADReleaseKey.keystore -alias pocket_aces_release -keyalg RSA -keysize 2048 -validity 10000 -got the MD5 fingerpring from it and used: $ keytool -list -alias pocket_aces_release PADReleaseKey.keystore -used it to get the mapAPI key and embedded it inside my application: <com.google.android.maps.MapView android:layout_weight="1"