package edu.vanderbilt.cs282.assignment_4;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;

import java.net.URL;

import android.app.Service;
import android.app.Activity;
import android.app.PendingIntent;

import android.content.Intent;
import android.net.Uri;
import android.util.Log;

import android.os.Bundle;
import android.os.AsyncTask;
import android.os.Environment;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;

// Please document all the classes, methods, and data members in this
// file.

public class ThreadedDownloadService extends Service 
{
    // You fill in here.

    public IBinder onBind(Intent arg0) 
    {
        return null;
    }

    String downloadFile (Uri uri) 
    {
        // You fill in here.
        return null; //fix
    }

    private void threadPendingIntentDownload (Intent i) 
    {
        // You fill in here.
    }

    private void asyncTaskDownload (Intent intent) 
    {
        // You fill in here.
    }

    public int onStartCommand(Intent intent, int flags, int startId) 
    {
        // You fill in here.   
        return 0; // fix this to return the right value.
    }
}
