Resume the Top Activity instead of starting the Launcher Activity

前端 未结 6 1229
既然无缘
既然无缘 2020-12-13 09:23

I have two activities in My application, one being launcher and the other is launched as a explicit call from the first.

Here My problem is when i go back to home sc

6条回答
  •  感动是毒
    2020-12-13 09:46

    what you can do is store a string in the persistent storage which determines whether the assets have been loaded before or not.

    Then, in the main activity, you may check if the assets have been loaded or not and then start the required activity.

    if(assets_already_downloaded)
      second_activity();
    else
      download_asset_activity();
    

提交回复
热议问题