android optimisation and good practice applyed