Yes, but as
this thread explains, neither android_id or MAC address can be relied upon for all devices. That is what I meant when I said there does not seem to be a perfect answer. I think someone somewhere said that the only reliable option was to set up a user registration and password database, but obviously that is a lot of extra work.