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.
我正在创建一个 android 应用程序,当我单击 myapp 图标并且当 myapp 启动时将屏幕截图设置为 myactivity 的背景时,我想在其中截取设备的屏幕截图,我搜索了很多但找不到任何解决方案,请告诉我如何实现这个任务?
当用户单击启动器图标(设备菜单中的应用程序图标)时,应用程序将启动。
这是由Android本身管理的,您无法覆盖/更改此行为。
这意味着在您的应用程序启动之前无法在设备上执行某些操作。