recherche

Maison  >  Questions et réponses  >  le corps du texte

android-studio - android app开启在后台运行,玩其他app一段时间后,数据都没了,该如何处理??

android 打开app,本来是登录状态,个人中心fragment本来是有数据的,而且本地也保存了该app的登录状态(即用户而不是游客,该数据也是通过set保存在application的继承类中),按home键,让其在后台运行,去玩其他app一段时间后,在从后台去打开前面那个app,那个app的数据没了,连本地保存的登录状态也没有了,我想问的是这该如何处理???

高洛峰高洛峰2886 Il y a quelques jours879

répondre à tous(2)je répondrai

  • 大家讲道理

    大家讲道理2017-04-17 17:44:03

    Si

    adapter a changé, s'il faut appeler adapter.notifyDataSetChanged();
    ou dans d'autres cas, essayez d'appeler gridview.invalidate();

    répondre
    0
  • PHP中文网

    PHP中文网2017-04-17 17:44:03

    Pouvez-vous me dire comment vous écrivez le code pour développer la grilleView lorsque vous cliquez sur l'élément ?

    répondre
    0
  • Annulerrépondre