call intent's setDataAndType to set data and type.