get key and uri from intent extra.