Check user action on Intent.ACTION_VIEW

后端 未结 3 627
别跟我提以往
别跟我提以往 2021-01-05 01:06

I have a listview populated with some files,there can be various types like pdf or documents.When a user clicks on one i get the file mime type and start an intent that let\

3条回答
  •  孤城傲影
    2021-01-05 01:43

    try

    if (resultCode == RESULT_CANCELED) instead of if (resultCode == Activity.RESULT_CANCELED )

提交回复
热议问题