this is my first time working with DB in android. So I figured I would follow this tutorial http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
As you can see, it makes you create a DB which as both an ID and something called UNIQUE_ID (there's even a function in PHP which creates a unique identifier)
ID is the primary key UNIQUE_ID is set as UNIQUE
my question is. why do I need both? which one do I use for foreign keys?. Which is the point of having such a long a complicated ID?
Thanks In advance