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:
@@ -191,6 +191,9 @@ public class ReportPostingService extends Service {
|
|||||||
*/
|
*/
|
||||||
private void postReport(){
|
private void postReport(){
|
||||||
if(!isStarted){
|
if(!isStarted){
|
||||||
|
new Thread(new Runnable(){
|
||||||
|
@Override
|
||||||
|
public void run(){
|
||||||
isStarted = true;
|
isStarted = true;
|
||||||
try {
|
try {
|
||||||
Log.d(TAG, mReport.file());
|
Log.d(TAG, mReport.file());
|
||||||
@@ -204,5 +207,7 @@ public class ReportPostingService extends Service {
|
|||||||
ReportPostingService.this.stopSelf(mStartId);
|
ReportPostingService.this.stopSelf(mStartId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user