简体   繁体   English

SupportPlaceAutocompleteFragment用于android在每次按键时关闭键盘

[英]SupportPlaceAutocompleteFragment for android closing keyboard on each key press

I'm developing an android app using google place autocomplete (SupportPlaceAutocompleteFragment). 我正在使用Google Place自动完成功能(SupportPlaceAutocompleteFragment)开发一个Android应用程序。 On some devices I experienced this problem: when the user try to write an address the android keyboard close after every touch so it is not possible to write a full address. 在某些设备上,我遇到了此问题:当用户尝试写入地址时,每次触摸后android键盘都会关闭,因此无法写入完整的地址。 On other devices the autocomplete works fine. 在其他设备上,自动完成功能可以正常工作。 Any idea on how to fix this? 关于如何解决此问题的任何想法?

The problem was that I used a wrong SHA1 certificate (I used the debug instead the one used for signing the app) in Google API Console when creating the API! 问题是在创建API时,我在Google API控制台中使用了错误的SHA1证书(我使用了调试,而不是用于对应用程序进行签名的证书)! Once the SHA1 certificate was correct everything started to work good. 一旦SHA1证书正确,一切就会开始正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM