0

I'm really a newbie to android world. And now i'm coding for downloading a file from my dropbox storage. I want to know what will be the best practice for implementing a download (direct download)

I found DownloadManager, service, AsyncTask .... DownloadManager - doesn't support on older devices, Android2.1

Download a file with Android, and showing the progress in a ProgressDialog

What should i use if I want to implement for android 2.1 devices ? could u guide me which method should i use and which is better way to use (less consuming resources) ?

4

1 に答える 1

0

これについての記事を書きました。AsyncTaskとサービスを使用して、ダウンロードを処理し、さまざまなアクティビティにブロードキャストを送信できます。プログレスバーを使用する可能性もあります。このページでチュートリアルとソースコードを見ることができます。

于 2012-06-22T19:09:06.013 に答える