de.Android_Seminar.fileTransmitter
Class FileTransmitter

java.lang.Object
  extended by Service
      extended by de.Android_Seminar.fileTransmitter.FileTransmitter
All Implemented Interfaces:
java.lang.Runnable

public class FileTransmitter
extends Service
implements java.lang.Runnable

This class will transmit a file to a server

Author:
jonas

Constructor Summary
FileTransmitter()
           
 
Method Summary
 java.lang.String getTransmittingFile()
           
 IBinder onBind(Intent intent)
           
 void onCreate()
           
 void onDestroy()
           
 void run()
          run method of the thread
 void transmitFile(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransmitter

public FileTransmitter()
Parameters:
file - the file, which should be transmitted
Method Detail

onCreate

public void onCreate()

onDestroy

public void onDestroy()

run

public void run()
run method of the thread

Specified by:
run in interface java.lang.Runnable

transmitFile

public void transmitFile(java.lang.String file)
Parameters:
File - the file name of the xml file that should be transmitted. This file name must consist only of the file's real name, not of it's path

getTransmittingFile

public java.lang.String getTransmittingFile()
Returns:
the file that is transmitted at the moment, or null if no transmission is taking place.

onBind

public IBinder onBind(Intent intent)