I moved the report filing work, to it's own thread

closes #96

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-06-03 11:52:49 -04:00
parent 9b7c2594c9
commit 824f58879c

View File

@@ -191,6 +191,9 @@ public class ReportPostingService extends Service {
*/
private void postReport(){
if(!isStarted){
new Thread(new Runnable(){
@Override
public void run(){
isStarted = true;
try {
Log.d(TAG, mReport.file());
@@ -204,5 +207,7 @@ public class ReportPostingService extends Service {
ReportPostingService.this.stopSelf(mStartId);
}
}
}).start();
}
}
}