Class | Description |
---|---|
DirectoryItem |
Item description.
|
DirectoryNavigator |
Class used to navigate around the XML file.
|
DirectoryTreeDownload |
DirectoryTreeDownload gets directory tree of files of general documents of a course/group
or documents from shared area of a course/group
|
DownloadNotification |
This class manages the notifications associated to downloading files.
|
DownloadsManager |
Activity to navigate through the directory tree of documents and to manage
the downloads of documents
|
FileDownloader |
***************************** Usage example ***********************
The following code shows how to retrieve an image and display it:
TextView tv = new TextView(this);
try {
FileDownloader downloader = new FileDownloader(this.getFilesDir());
String url = "http://i0.kym-cdn.com/entries/icons/original/000/003/619/Untitled-1.jpg";
File path = downloader.get(url);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 1;
final Bitmap b = BitmapFactory.decodeFile(path.getPath(), options);
ImageView imagenDescargada = new ImageView(this);
imagenDescargada.setImageBitmap(b);
setContentView(imagenDescargada);
} catch (MalformedURLException e){
tv.setText("URL incorrecta");
setContentView(tv);
} catch (FileNotFoundException e){
tv.setText("la URL no existe");
setContentView(tv);
} catch (IOException e) {*
tv.setText("error en la conexión");
setContentView(tv);
}
|
FileDownloaderAsyncTask |
Download the file located at the given URL, save it to a file.
|
GetFile |
Module to get information of a file located in SWAD
It makes use of the web service getFile (see http://swad.ugr.es/ws/#getFile)
It needs as extra data:
- (long) fileCode It indicates the file which information is requested
It returns as extra data:
- (string) link : temporal URL to download the file
- (
|
NodeAdapter |
Adapter to populate browser of files with the information received from SWAD
|
NodeAdapter.ViewHolder |
Exception | Description |
---|---|
InvalidPath |
Class that represents an exception occurred because the path
are incorrect.
|