use intent's getExtras method to get extra data.