udacity / AdvancedAndroid_Shushme

136 stars 367 forks source link

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

Open alvarosantisteban opened 7 years ago

alvarosantisteban commented 7 years ago

Steps:

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

Xperia z5 Compact (Android 7.0)

Adsama94 commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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

beshubh commented 5 years ago

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 commented 5 years ago

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

nmluthfi commented 5 years ago

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

AndiHoxha1987 commented 4 years ago

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