add lifecyle sample from programming android with tag modification