ANDROIDTUT-2 added functionality according to task

Detailed information about function in JIRA