由网友(whisper(耳语))分享简介:我创建了一个应用程序,用于播放视频。它工作正常,但问题是 - 当我preSS活动不打烊设备上的后退按钮。播放视频时的背景。我使用 onBack pressed()。如何关闭当前的活动?I created an app for playing videos. It works fine but the problem...
我创建了一个应用程序,用于播放视频。它工作正常,但问题是 - 当我preSS活动不打烊设备上的后退按钮。播放视频时的背景。我使用 onBack pressed()
。如何关闭当前的活动?
I created an app for playing videos. It works fine but the problem is - when I press the back button on the device the Activity is not closing. The video is playing in the Background. I am using onBackpressed()
. How to close the current activity?
推荐答案
把这个code ....
put this code....
@Override
public void onBackPressed()
{
finish();
}
相关推荐
最新文章