AdvancedAndroid_Shushme
AdvancedAndroid_Shushme copied to clipboard
Not able to add location because the activity closes with resultCode = 2
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)
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.
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.
You need to add your api_key in the manifest , I had the same issue.
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
I'm having the same issue and I checked all of the mentioned solutions.
Hello, i have same issue, i had added the API key in Manifest and Use the Places API. The problem still there
me too, how can we resolve this??? any help