开发者

check to see if value exists then display different pages based on reply

开发者 https://www.devze.com 2023-02-18 20:16 出处:网络
I have a mysql database set up开发者_StackOverflow中文版, i was wondering if it is possible to check the mysql database for a value (e.g. a username) and then report back if the username exists load o

I have a mysql database set up开发者_StackOverflow中文版, i was wondering if it is possible to check the mysql database for a value (e.g. a username) and then report back if the username exists load one activity, if not load another. all of this done on an android app

Thanks


Yes, it is definitely possible. You can query the database in your Activity's onCreate or onResume and then call StartActivity passing in different Activity classes based on the results of the query.

0

精彩评论

暂无评论...
验证码 换一张
取 消