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.
を使用してファイルをダウンロードしました。DownloadManagerダウンロード後にそのファイルを自動的に解凍する必要があります。そのファイルの名前を取得する方法はありますか?
DownloadManager
私の質問の詳細: downloadmanager は複数のタスクをダウンロードしており、1 つのタスクが完了すると、この完了をレシーバーにブロードキャストします。今、私の問題は、そのファイルの名前をレシーバーに渡す方法です。
へのダウンロードのパスを指定しましたDownloadManager。したがって、「ファイルの名前」はすでにわかっています。ダウンロードが完了したら、使用するためにその情報を保持する必要があります。