速報APP / 教育 / AsyncDownloadZipEg

AsyncDownloadZipEg

價格:免費

更新日期:2017-03-06

檔案大小:1.2M

目前版本:1.0

版本需求:Android 4.0.3 以上版本

官方網站:http://kana-tutor.com

Email:sjs@kana-tutor.com

聯絡地址:215 hendley street Santa Rosa, CA 95404

AsyncDownloadZipEg(圖1)-速報App

About a month ago (2/2017) I was looking for example code that would allow me to download and unzip files. I didn't find anything I liked -- hence this application.

This application is meant as an example application showing how to use AsyncTask to do tasks on a background thread and implement communication between the UI thread and the background thread.

This is more than an example however. In the process of going from example code to becoming an application, it got the things that make it an application.

AsyncDownloadZipEg(圖2)-速報App

The User Interface consists of a spinner for selecting previously downloaded files, a text window for selecting the name of the file to download, a window displaying the file to uncompress and two buttons to start download or uncompress.

The application has 2 activities -- MainActivity and AboutEtc. It also has 3 AsyncTask classes which download and uncompress files, an interface to communicate between the UI thread and the background thread and a synchronized controller for the buttons to prevent download and uncompress from stepping on each other.

The AboutEtc activity is called from the menu and shows information on licensing, privacy, and build time, install time, versioning and a link to the application and developers page on google play.

By default, the file selection spinner shows "no file selected" the first time it is run but on the list of files in the spinner you will also find "master.zip". Select this file, download and ujnzip and you have the current source downoladed from GitHub. The source is also available from https://github.com/bebop-001.

Currently, this app is only supports English but it is built in such a way that it should support internationalization if translated files for strings.xml, Privacy.html and LICENSE-2.0.en.html are added. If you'd like to provide translations, please contact me.