google-maps-android-api-2

Google Maps Android API v2 - Sample Code crashes

夙愿已清 提交于 2020-01-09 03:01:05
问题 I'm trying to get the sample code of Android 'Google Maps Android API v2' working. I get the project built without errors. However, when I try to run the app on my Galaxy Nexus (connected with usb to my laptop), the app crashes immediately. I filled in my own Maps API Key at the AndroidManifest.xml I built against Android 4.1.2 This is the logging: Unable to resolve superclass of Lcom/example/mapdemo/BasicMapActivity; (66) Link of class 'Lcom/example/mapdemo/BasicMapActivity;' failed Could

Map behavior like in Google Maps application [closed]

会有一股神秘感。 提交于 2020-01-07 09:44:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to achive map behavior like in google maps application. Example: set marker on a shop somewhere in the bottom of the screen, click on that marker so info panel should open and overlay the marker, map moves it's content so marker is still visible. I don't know how to correctly quote this requirement so I

Map behavior like in Google Maps application [closed]

孤者浪人 提交于 2020-01-07 09:42:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to achive map behavior like in google maps application. Example: set marker on a shop somewhere in the bottom of the screen, click on that marker so info panel should open and overlay the marker, map moves it's content so marker is still visible. I don't know how to correctly quote this requirement so I

Map behavior like in Google Maps application [closed]

微笑、不失礼 提交于 2020-01-07 09:42:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to achive map behavior like in google maps application. Example: set marker on a shop somewhere in the bottom of the screen, click on that marker so info panel should open and overlay the marker, map moves it's content so marker is still visible. I don't know how to correctly quote this requirement so I

Android Google Map latitude and longitude compression [closed]

谁都会走 提交于 2020-01-07 09:04:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am doing one application for Track routes of bike. I am fetching all the latitude and longitude per second. Now I want to store that latitude and longitudes in my local database or on server. But the problem is data becomes very large. So I want to store that data with optimization, means I want same result

Maps api: check if a marker falls to the left or right of a polyline

扶醉桌前 提交于 2020-01-07 06:40:06
问题 I'm currently developing an app using maps API, I have a polyline that is that start as LatLnt one and ends at LatLng two creating a straight line. If I have a Marker that falls somewhere close to this polyline how would I tell if the marker is to the left or to the right of the polyline? Are there any API utils that handles such geometric calculations? 回答1: You have coordinates L0, L1 for starting and ending points of line and marker coordinate P. Find azimuths for directions L0-L1 and L0-P

google map blank screen, programmatic added

喜欢而已 提交于 2020-01-07 05:50:26
问题 I have put the google map service on by console, and generate a debug key. I've debug it, the mMap and mLocation both are not null. I can get latitude and longitude successfully. But the map is still blank. Please help. sam here is the layout xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#f2f5fa" tools:context=".LocFm" > <!

Show/hide google Map icon when app in background

本秂侑毒 提交于 2020-01-06 17:55:07
问题 Hi i wants to hide/show map icon when my activity/page in background/foreground. i did not know how to do this because new in android so please reply as soon as possible. 回答1: As you already call this mMap.setMyLocationEnabled(true) in onCreate or in setupMap , you need to disable it in onPause @Override public void onPause() { super.onPause(); if (mMap != null) { mMap.setMyLocationEnabled(false); } } 来源: https://stackoverflow.com/questions/32316040/show-hide-google-map-icon-when-app-in

google maps v2 not showing multiple markers

风格不统一 提交于 2020-01-06 17:41:14
问题 I am trying to add multiple markers in GoogleMaps. I am using Google Map Android API v2. Before asking this question i read this and this links and a few more links. Please see my code: for (PostList post : postList) { Log.d("location", "latitude" + post.latitude); Log.d("location", "longitude" + post.longitude); double latitude = Double.parseDouble(post.latitude); double longitude = Double.parseDouble(post.longitude); //LatLng postPosition = new LatLng(latitude, longitude); LatLng

Start Activity with MapFragment from another Activity

99封情书 提交于 2020-01-06 12:53:08
问题 I developed an application and I need to start a new activity from my menu with a simple button. I made several tests and noticed that if I set the intent-filter of Activity that contains the MapFragment as follows: <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> this works fine without any crashes. If instead modify the intent-filter in such a way as not to start the Activity soon as you open the app and in particular the edit