Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add location because the activity closes with resultCode = 2 #10

Open
alvarosantisteban opened this issue Aug 17, 2017 · 7 comments

Comments

@alvarosantisteban
Copy link

alvarosantisteban commented Aug 17, 2017

Steps:

  • Click Add new location button
  • The map is opened. Before I click anything, it returns to the main activity.

While debugging I see that the resultCode in onActivityResult is always 2.

Xperia z5 Compact (Android 7.0)

@Adsama94
Copy link

Adsama94 commented Aug 28, 2017

I'm facing the same issue. My device is a OnePlus X ONE E1003 running Android 6.0.1.

Someone added a solution to this in a separate issue but I can't quite understand what they did.

@anddev1717
Copy link

Make sure that you are using "Google Places API for Android" and not "Google Maps Android API" .
this was my problem for activity closure in 2 sec.

@sohail77
Copy link

You need to add your api_key in the manifest , I had the same issue.

@beshubh
Copy link

beshubh commented Mar 4, 2019

Make sure that you are using "Google Places API for Android" and not "Google Maps Android API" .
this was my problem for activity closure in 2 sec.

can you share the link

@roya90
Copy link

roya90 commented Apr 13, 2019

I'm having the same issue and I checked all of the mentioned solutions.

@nmluthfi
Copy link

Hello, i have same issue, i had added the API key in Manifest and Use the Places API. The problem still there

@AndiHoxha1987
Copy link

me too, how can we resolve this??? any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants