pop3 can only receive email, not send it. so, assuming you can get gmail to
allow you to receive email using pop3 or imail, you still have the problem of
sending messages. for that you need smtp.
getting gmail to go along with your scheme may no longer be doable. i don't use
the service myself, so i thought i would try just to see what the latest obstacles
might be. i did not receive the same error messages as you, but it looks like you
may need 2-factor authorization before google will let you do it. (not to mention that
sending and receiving email has already been available for some time, so
it's not clear exactly what your app's added value would be. i'm guessing
some kind of "chat", perhaps).
in any case, while gmail may no longer work, there is nothing stopping you (and
your fellow users) from opening an email account on some server which accepts pop3.
just because you're using android doesn't limit you to gmail. the net library does work
in this regard. and, by the way, the net library can also handle sending email, but you need
an smtp server (which will not be gmail).
note: reading (that is, parsing) email is not a trivial task. you would, to all intents and
purposes, be limited to simple text messages (that could include base64 "encoding"
if you thought that would deter snooping, a la telegram. not.
)