Java recollection and Android practice