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.
精彩评论