Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在我的应用程序中访问移动相机以捕获图像。在这里我想当我点击相机(按钮)时,它会打开移动设备的相机来捕捉。在捕获图像之前,这意味着我想调用 Onbackpressed() 方法,这应该返回到我的应用程序的主页。我应该如何实现这一点。
谢谢,拉姆
Goddchen 是对的,你为什么要打开它来关闭.. 反正打开相机后不需要调用 onbackpressed() 设置主页的意图。