Intent.setData vs Intent.putExtra

后端 未结 4 610
长发绾君心
长发绾君心 2020-12-09 15:44

I\'m trying to follow this tutorial:

http://www.vogella.com/articles/AndroidCalendar/article.html

I understand what putExtra does

but I fail to under

4条回答
  •  被撕碎了的回忆
    2020-12-09 16:25

    setData() is used for the Android System to find an application component that matches the data attribute in implicit intent.


    putExtra() is mainly used to pass some information to the selected application component,by the Android system.

提交回复
热议问题