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.
アプリケーションの新しいバージョンをインストールするときに、アプリケーションの以前のバージョンのキャッシュとすべての詳細をプログラムで削除したいと考えています。これどうやってやるの?
最初に現在のアプリケーションが古いバージョンであることを確認してから、次の方法で削除します。
Uri packageURI = Uri.parse("package: your.application.package"); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI); startActivity(uninstallIntent);