The content below is from the Android developer site:
According to the phrase it is expecting the developer to store this info in his head. Shouldn't this be simple if they kept only setDataAndType
and let user to set both, either or none, in which we don't have to remember this caveat since it is taken care by design.
As the code is from Google, I would like to check with the community if there is any good reason for they doing this that I am missing to see?
Signatures:
setType(String)
setData(Uri)
setDataAndType(Uri, String)