Tag: google-maps

How to put some delay in calling an activity from another activity?

I have an application in which I’m receiving a sms containing his location.On receiving sms it calls another activity to start and passes that location to that activity to plot it on the map.Before calling the second activity it shows a toast like notification on the screen but somehoe due to calling second activity that […]

Android 8 or higher: Check for Google Play Services

this method keep returning 0. According to the developer docs this method should return something like SUCCES if the device got the newest version of google play. Does anybody know how to use this? @Override public void onResume() { super.onResume(); GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext()); System.out.println(“henkie: ” + GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext())); }

Change Google Place Picker Appbar Text Color

I would really like to know if I am able to change the text color of the Appbar text in the PlacePicker API for Android. It should inherit the styling from my application, but it does not do that. my styles.xml is as follows: <style name=”MaterialParent” parent=”Theme.AppCompat.Light.NoActionBar”> <!– …and here we setting appcompat’s color theming […]

Moving icons on a Android MapView

I’m working on an application that displays the location of moving items on a Google MapView. I need a way to update the position of the icons that represent the items (as well as change the facing of the icons every two seconds as updated data comes in). I currently have an activity in the […]

Using a Mock Location in Navigation App

I’m trying to develop an application that will simulate a route through Google’s Navigation application. I found some excellent examples of how to implement a mock location provider in some other posts on this website ( Android mock location on device? ). With a simple modification to the source code http://www.cowlumbus.nl/forum/MockGpsProvider.zip, my mock location shows […]

When can you call GoogleMap.moveCamera after onMapReady from OnMapReadyCallback?

The current Android Google Maps API requires you call mapFragment.getMapAsync with a OnMapReadyCallback before you can access the GoogleMap. I assumed that once you had the GoogleMap it would then be safe to call moveCamera() but I was seeing crash reports with an IllegalStateException which said Map size can’t be 0. Most likely, layout has […]

Drawing freely by fingers on Google Map

I want to implement a custom module for free drawing on Google Map. When it comes to the implementation, I have found that the Google Map onDrag() callback and always overrides my custom onDrag() function. I am not so sure how to use my FrameLayout onDrag() to override the map click and drag motion. Here […]

How to display popup on tapping overlay in android?

In my map application, I am displaying a set of overlays on a map. Whenever I tap on an overlay I need to display a popup, like this Can any one help me to sort out this?

Android – Disable MyLocation button on google map

This question already has an answer here: Disable center button in MyLocation at Google Map API V2 3 answers

Why google map v2 suddenly crashed by java.lang.NullPointerException: Attempt to get length of null array?

I have an issue that caused by NullPointerException. App starts crashing today when i’m trying to do mMapView.onCreate(savedInstanceState); but yesterday it was fine. I just change my layout file to another (similar) with another name. Here’s exception: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.parking.android, PID: 17585 java.lang.NullPointerException: Attempt to get length of null array at maps.G.a.a(Unknown […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.