c# - Google maps closes immediately after opening -
i have problem google maps. supposed show me map opens map , closes it. map open in onpickaplacebuttontapped immediatly jumps onactivityresult closing map.
private void onpickaplacebuttontapped(object sender, eventargs eventargs) { var builder = new placepicker.intentbuilder(); startactivityforresult(builder.build(this), place_picker_request); } protected override void onactivityresult(int requestcode, result resultcode, intent data) { if (requestcode == place_picker_request && resultcode == result.ok) { getplacefrompicker(data); } base.onactivityresult(requestcode, resultcode, data); }
have configured app using google placesapi, if not refer (https://developers.google.com/places/android-api/start#configure app) , create api key & enable google places api on console.
you can explore logcat error on these lines, make sure not select filter in logcat
Comments
Post a Comment