简体   繁体   English

单击Android卸载应用程序

[英]Uninstall Application by a Single Click Android

Please help me to clear my doubt. 请帮助我清除我的疑问。 I develop an application that performs uninstall applications. 我开发了一个执行卸载应用程序的应用程序。 I use the code 我使用代码

Intent intent = new Intent(Intent.ACTION_DELETE);

    intent.setData(Uri.parse("package:"+appname));

    startActivity(intent); 

But it will show the uninstall window(default) that the user made click "yes" to uninstall and "ok". 但是它将显示用户创建的卸载窗口(默认),单击“是”进行卸载,然后单击“确定”。 I need to make that process by simply clicking one button in my application. 我只需在应用程序中单击一个按钮即可完成该过程。 That is no need to view the uninstall window. 无需查看卸载窗口。 How can i achieve this. 我怎样才能做到这一点。

在Android中这是不可能的-用户仍然必须确认该应用程序已被卸载,这是设计使然。

The Installer and Uninstaller are under OS control. 安装程序和卸载程序受操作系统控制。 You can't modify them. 您无法修改它们。

I think you can achieve this only by modifying the android source and building it. 我认为您只能通过修改android源并构建它才能实现此目的。 Its not possible with an app. 应用程序无法实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM