Android: How to release resources when the application terminates?

前端 未结 5 1410
独厮守ぢ
独厮守ぢ 2020-12-18 22:13

I created an application which uses camera and during the appplication execution the screen is always on.

In the onCreate() method I added the lock:

         


        
5条回答
  •  时光取名叫无心
    2020-12-18 22:59

    I had troubles to release data when I was using OpenGL. So now, with android.os.Process.killProcess(android.os.Process.myPid()); it works just as I want !!

    Thanks Art

提交回复
热议问题