AdvancedAndroid_Shushme icon indicating copy to clipboard operation
AdvancedAndroid_Shushme copied to clipboard

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

Open alvarosantisteban opened this issue 8 years ago • 7 comments

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)

alvarosantisteban avatar Aug 17 '17 09:08 alvarosantisteban

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.

Adsama94 avatar Aug 28 '17 14:08 Adsama94

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.

anddev1717 avatar Jan 03 '18 18:01 anddev1717

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

sohail77 avatar Jan 20 '18 09:01 sohail77

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

beshubh avatar Mar 04 '19 05:03 beshubh

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

roya90 avatar Apr 13 '19 19:04 roya90

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

nmluthfi avatar May 30 '19 10:05 nmluthfi

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

AndiHoxha1987 avatar Dec 10 '19 19:12 AndiHoxha1987