google-maps-android-api-2

Is it possible to get the longitude, latitude and timestamp from google maps API for the places travelled in the past?

大兔子大兔子 提交于 2019-12-23 02:29:29
问题 I was thinking of building an app for a hackathon, in which I need to know if it is possible to get the location coordinates and the timestamp of those coordinates. For example say, X was at A in time p and at B in time q, now can I get these parameters from the Google Maps API, which will have to be fetched from its history? This is a place where one can check there location history What I want to know is, is it possible through the API? As you would have guessed I am a complete noob in

Delayed panning after map in gallery was moved away by a dialog

自闭症网瘾萝莉.ら 提交于 2019-12-22 10:22:25
问题 I have a map in a gallery, together with other pages. When I am sliding the gallery pages with touch gestures everything works fine. But when I move the map away using a button on a dialog, and then slide back to the map, the map does no longer smoothely follow the panning gesture. It rather follows with a noticeable delay. As soon as I hide the map once again with a dialog and close the dialog, e.g. with the back button, the behaviour returns to normal. To reproduce it, I have stripped down

Every 1 Minute Gps LatLong Getting From Server Showing In Map as Marker. But Marker Geting Duplicating

回眸只為那壹抹淺笑 提交于 2019-12-22 08:03:29
问题 1.In My app Gps LatLong is Getting from Server Every OneMinute. Saved in Shared Pref ,then getting the LatLong From shared pref Showing the Marker on the Map . 2.Every One Minute I want to Move the Marker based on the LatLong. 3.But While Changing the Marker Location. Getting Duplicates . Please Help me to Solve this Issue. Inside Oncreate method i Called below Snippet in Every 60 Secs for Calling a Method. try { Thread t = new Thread() { @Override public void run() { try { while (

Android map api-2 disable click

↘锁芯ラ 提交于 2019-12-22 05:24:12
问题 I'm in the middle of migrating one of my app to the Android map V2. I'm showing a marker on the map and don't want to send touch events to the map to change the position/zoom level etc. in the earlier version, i was able to disable touch by setting android:clickable="false" in the MapView . how can i do the same thing in the Android map V2? 回答1: yourmap.getUiSettings().setAllGesturesEnabled(false); 回答2: Figured it out myself. mMapFragment.getView().setClickable(false); 来源: https:/

Cluster markers overlay by User's current location icon in Android

∥☆過路亽.° 提交于 2019-12-22 05:09:19
问题 I'm using google map that implemented Clustering marker inside. However, my markers has been overlaid by User's current location icon like Image below this is my code: protected void onBeforeClusterRendered(Cluster<CurationLocation> cluster, MarkerOptions markerOptions) { if (isAdded()) { final Drawable clusterIcon = getResources().getDrawable(R.drawable.oval_bg); mClusterIconGenerator.setBackground(clusterIcon); mClusterIconGenerator.setTextAppearance(R.style.AppTheme_WhiteTextAppearance);

How to add overlay in google maps API v2 | Android |

旧时模样 提交于 2019-12-22 03:49:02
问题 I recently got working with Google Maps API v2 on Android and stumbled upon another obstacle. I cannot figure out how to add an overlay such as in API v1 to display a marker on certain locations using lat and long. I also want it to start in the same town using long and lat. I so far added some code in for the starting position of map BUT it didn't work. I guess I should write it all in java instead of the XML layout but I don't know how to address SupportMapFragment to do anything. This is

Fragment with Map crashes app when back button is pressed or when orientation changes

狂风中的少年 提交于 2019-12-22 01:30:01
问题 I have an Activity that loads 2 tabs in the ActionBar . Tab 1 loads a Fragment that will will inflate a WebView , while Tab 2 loads a Fragment with a map. Initially, I have the problem of changing tabs that causes the app to crash. I have followed the instructions here and implemented onDestroyView() . The problem now is that if I press the back button from Tab 1 ( WebView ), it exits the Activity properly. But if I do it on Tab 2 (map), the app crashes. The exact same scenario applies to

android.view.InflateException Error inflating class fragment

故事扮演 提交于 2019-12-22 01:13:52
问题 I am trying to solve this problem from 5 days, but still I didn't get it solved. Main Java Code package com.beproject.ourway; import android.app.Fragment; import android.app.FragmentManager; import android.os.Bundle; import android.os.Handler; import android.support.v4.app.FragmentActivity; import android.support.v4.widget.DrawerLayout; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView;

Google maps Android API getting wifi location

筅森魡賤 提交于 2019-12-22 00:12:58
问题 So I am working on this app that will get the location of a wifi hotspot by just detecting it using the sensor wifi of the phone (The phone is not actually connecting to the hotspot wifi, it just detect). I was doing some preliminary research before start developing the app, and it seems that the Google Geolocation API will do the work for me. However, it is not free (at least what I understood after reading through the API). I had checked other apps that detects wifi hotspot, and I am just

How to add markers on a map as users opens the activity, and update the realtime location of each marker as users move?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 20:39:20
问题 I have an activity in my app which has a Map in it and as users opens this activity from their devices, a marker is added showing their current location and then an inner Service class in which the code of updating the realtime location goes. Here's my code: mDatabase.child(rID).addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.getValue() != null) { Map<String, String> newAcceptedUser = (Map<String,