Android framework - usefull open source function