Conflict accessing sqlite database android, from Service and onClick

前端 未结 1 1098
粉色の甜心
粉色の甜心 2021-01-22 00:00

In my app android, I can access to my sqlite database from:

1) Service android, every 60 seconds.

2) After pressure of button (onclik)

If I press the bu

相关标签:
1条回答
  • 2021-01-22 00:58

    You can override the onDestroy() event for the service and try to access the database on it:

    @Override
    public void onDestroy() {
        // *** access to my database ***
        super.onDestroy();
    }
    
    0 讨论(0)
提交回复
热议问题