Try this:
[paths]
default = http://code.programadoremjava.com.br/android-archetype
[auth]
repo.prefix = http://code.programadoremjava.com.br/android-archetype
repo.username = MyUser
repo.password = MyPass
Much more details you can find here: How to save username and password with Mercurial?