Loading app/src/main/java/foundation/e/drive/services/InitializerService.java +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ import foundation.e.drive.receivers.ScreenOffReceiver; import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.JobUtils; import foundation.e.drive.utils.ServiceExceptionHandler; import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR; import static foundation.e.drive.utils.AppConstants.INITIALFOLDERS_NUMBER; Loading Loading @@ -67,6 +68,7 @@ public class InitializerService extends Service implements OnRemoteOperationList @Override public int onStartCommand( Intent intent, int flags, int startId ) { Log.i(TAG, "onStartCommand(...)"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); //Get account SharedPreferences prefs = this.getSharedPreferences( AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE ); Loading app/src/main/java/foundation/e/drive/services/ObserverService.java +4 −7 Original line number Diff line number Diff line Loading @@ -49,6 +49,8 @@ import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.DavClientProvider; import foundation.e.drive.utils.JobUtils; import foundation.e.drive.utils.ServiceExceptionHandler; import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR; import static foundation.e.drive.utils.AppConstants.INITIALIZATION_HAS_BEEN_DONE; Loading @@ -75,15 +77,10 @@ public class ObserverService extends Service implements OnRemoteOperationListene this.mSyncedFolders = null; } @Override public void onCreate() { Log.i(TAG, "onCreate()"); super.onCreate(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.i(TAG, "onStartCommand("+startId+")"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); SharedPreferences prefs = this.getSharedPreferences(AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); String accountName = prefs.getString(AccountManager.KEY_ACCOUNT_NAME, ""); Loading app/src/main/java/foundation/e/drive/services/OperationManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import foundation.e.drive.operations.UploadFileOperation; import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.DavClientProvider; import foundation.e.drive.utils.ServiceExceptionHandler; /** * @author Vincent Bourgmayer Loading Loading @@ -247,6 +248,8 @@ public class OperationManagerService extends Service implements OnRemoteOperatio public int onStartCommand(Intent intent, int flags, int startId) { Log.i(TAG, "onStartCommand()"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); Bundle extras = intent.getExtras(); Log.d(TAG, "OperationManagerService recieved "+(extras == null ? "null extras": extras.size()+" operations to perform") ); Loading Loading
app/src/main/java/foundation/e/drive/services/InitializerService.java +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ import foundation.e.drive.receivers.ScreenOffReceiver; import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.JobUtils; import foundation.e.drive.utils.ServiceExceptionHandler; import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR; import static foundation.e.drive.utils.AppConstants.INITIALFOLDERS_NUMBER; Loading Loading @@ -67,6 +68,7 @@ public class InitializerService extends Service implements OnRemoteOperationList @Override public int onStartCommand( Intent intent, int flags, int startId ) { Log.i(TAG, "onStartCommand(...)"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); //Get account SharedPreferences prefs = this.getSharedPreferences( AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE ); Loading
app/src/main/java/foundation/e/drive/services/ObserverService.java +4 −7 Original line number Diff line number Diff line Loading @@ -49,6 +49,8 @@ import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.DavClientProvider; import foundation.e.drive.utils.JobUtils; import foundation.e.drive.utils.ServiceExceptionHandler; import static com.owncloud.android.lib.resources.files.FileUtils.PATH_SEPARATOR; import static foundation.e.drive.utils.AppConstants.INITIALIZATION_HAS_BEEN_DONE; Loading @@ -75,15 +77,10 @@ public class ObserverService extends Service implements OnRemoteOperationListene this.mSyncedFolders = null; } @Override public void onCreate() { Log.i(TAG, "onCreate()"); super.onCreate(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.i(TAG, "onStartCommand("+startId+")"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); SharedPreferences prefs = this.getSharedPreferences(AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE); String accountName = prefs.getString(AccountManager.KEY_ACCOUNT_NAME, ""); Loading
app/src/main/java/foundation/e/drive/services/OperationManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ import foundation.e.drive.operations.UploadFileOperation; import foundation.e.drive.utils.AppConstants; import foundation.e.drive.utils.CommonUtils; import foundation.e.drive.utils.DavClientProvider; import foundation.e.drive.utils.ServiceExceptionHandler; /** * @author Vincent Bourgmayer Loading Loading @@ -247,6 +248,8 @@ public class OperationManagerService extends Service implements OnRemoteOperatio public int onStartCommand(Intent intent, int flags, int startId) { Log.i(TAG, "onStartCommand()"); Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this)); Bundle extras = intent.getExtras(); Log.d(TAG, "OperationManagerService recieved "+(extras == null ? "null extras": extras.size()+" operations to perform") ); Loading