Framework-side DropBox service that maintains a size-bounded

queue of data chunks (sort of a blob-oriented logcat).

In the future, this will be coupled with a revised checkin service that
would actually upload this data.
This commit is contained in:
Dan Egnor
2009-09-11 16:40:01 -07:00
parent cb640c4130
commit 7393bbff7f
10 changed files with 1528 additions and 16 deletions

View File

@@ -43,6 +43,7 @@ import android.util.EventLog;
import android.util.Log;
import android.accounts.AccountManagerService;
import java.io.File;
import java.util.Timer;
import java.util.TimerTask;
@@ -293,6 +294,14 @@ class ServerThread extends Thread {
(new DemoThread(context)).start();
}
try {
Log.i(TAG, "DropBox Service");
ServiceManager.addService("dropbox",
new DropBoxService(context, new File("/data/system/dropbox")));
} catch (Throwable e) {
Log.e(TAG, "Failure starting DropBox Service", e);
}
try {
Log.i(TAG, "Checkin Service");
Intent intent = new Intent().setComponent(new ComponentName(