}
}
}
public interface OnPhotoUploadListener {
- void onPhotoUploadSucceed(String photoPath);
- void onPhotoUploadFail(String photoPath, String groupId);
+ void onPhotoUploadSucceed(PhotoBean bean);
+
+ void onPhotoUploadFail(PhotoBean bean);
}
}
@@ -1,12 +1,16 @@ |
||
1 | 1 |
package ai.pai.lensman.upload; |
2 | 2 |
|
3 |
+import android.content.Intent; |
|
4 |
+ |
|
3 | 5 |
import java.text.SimpleDateFormat; |
4 | 6 |
import java.util.ArrayList; |
5 | 7 |
import java.util.Date; |
6 | 8 |
|
9 |
+import ai.pai.lensman.App; |
|
7 | 10 |
import ai.pai.lensman.base.BaseInteractor; |
8 | 11 |
import ai.pai.lensman.bean.SessionBean; |
9 | 12 |
import ai.pai.lensman.db.DBService; |
13 |
+import ai.pai.lensman.service.UploadService; |
|
10 | 14 |
|
11 | 15 |
public class UploadPresenter implements UploadContract.Presenter,BaseInteractor.InteractorListener<ArrayList<String>> { |
12 | 16 |
|
@@ -43,6 +47,8 @@ public class UploadPresenter implements UploadContract.Presenter,BaseInteractor. |
||
43 | 47 |
uploadView.refreshSessionViews(sessionList); |
44 | 48 |
} |
45 | 49 |
sessionSeq = sessionList.size(); |
50 |
+ |
|
51 |
+ App.getAppContext().startService(new Intent(App.getAppContext(), UploadService.class)); |
|
46 | 52 |
} |
47 | 53 |
|
48 | 54 |
@Override |