从其他应用程序中删除应用(Remove application from other application)
我尝试从android中的另一个应用程序中删除应用程序但是当我运行下面的代码我得到一个这个错误“在安装的应用程序列表中找不到应用程序”我怎么能解决这个问题,而且尝试删除应用程序有很多包我可以用吗?
Uri packageURI = Uri.parse("package:com.example.anke"); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); startActivity(uninstallIntent);
I try to remove application from another application in android but When I run below code I got a this error "The application was not found in the list of installed applications" how can I solve this problem furthermore try to remove application has a many package which can I use?
Uri packageURI = Uri.parse("package:com.example.anke"); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); startActivity(uninstallIntent);
原文:https://stackoverflow.com/questions/30046185
更新时间:2024-04-06 12:04