read methods dynamically as in android