Back button and refreshing previous activity

后端 未结 11 1368
感动是毒
感动是毒 2020-12-02 06:01

If we have two activities:

  1. List of files and last modified time
  2. File editing activity

A user selects a file from the list and is taken

11条回答
  •  眼角桃花
    2020-12-02 06:49

    I would recommend overriding the onResume() method in activity number 1, and in there include code to refresh your array adapter, this is done by using [yourListViewAdapater].notifyDataSetChanged();

    Read this if you are having trouble refreshing the list: Android List view refresh

提交回复
热议问题