Two instances of my android application are running…How to avoid this?

前端 未结 6 1843
一生所求
一生所求 2020-12-05 12:13

Here is my problem -

  1. I copied my .apk file onto phone memory card and launch my application clicking on it and it allows me to install my application.I ins

6条回答
  •  心在旅途
    2020-12-05 12:56

    what do your OnPause, OnResume and OnCreate? I will bet money you are not saving anything OnPause, and starting a new instance all the time via OnCreate.

    You should read the notes on Activity Lifecycles.

提交回复
热议问题