开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜