简体   繁体   English

Android Studio登录活动

[英]Android Studio Login Activity

I'm working at my first app and I want to login to a php website, but want to use the Login Activity of Android Studio. 我在第一个应用程序上工作,我想登录到php网站,但想使用Android Studio的登录活动。 My design looks perfect but I don't know how I can access my Database. 我的设计看起来很完美,但是我不知道如何访问数据库。 So how can I compare the email entered from the user and the email saved in the databse?...same for the password. 那么,如何比较用户输入的电子邮件和数据库中保存的电子邮件呢?...与密码相同。 Thanks a lot for helping me 非常感谢您的帮助

Your app doesn't know your webpage's database. 您的应用不知道您网页的数据库。 You need to do add some backend API to your website (via REST, SOAP, HTTP or whatever) so that the app can query for users with given name/password and make that api call from the app. 您需要向网站添加一些后端API(通过REST,SOAP,HTTP或其他方式),以便该应用可以查询具有给定名称/密码的用户,并从该应用进行api调用。 I strongly recommend using encryption. 我强烈建议使用加密。

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

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