-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on syncing in background #4
Comments
Was it an error in SyncAdapter.java line number 36 ? ( can you see the logs), I addressed one such issue in the Pull request raised. |
2018-10-04 00:29:05.734 3244-3244/? D/Rajesh: 78 |
okay, I have put a breakpoint in onPerformSync(...) but it never came here. |
That shouldn't happen, syncable is true by default, any way I merged the latest pull request to master, try pulling the changes and launch the app. If you still see a crash, please try sharing logs at the point crash is happening, i.e. your device being connected to the laptop, by cable. And try filtering the logs to ones corresponding to error, using filters in the logcat console. The above logs don't have any exception corresponding to the process run by the SensorApp, so they are not useful. |
2018-10-04 01:37:35.350 1334-1427/? E/BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=51142817 mSleepTimeMs=7766 mIdleTimeMs=-6183 mTxTimeMs[]=[0, 1, 337, 7, 15] mRxTimeMs=12383 mEnergyUsed=0} |
This has been fixed on latest master |
java.lang.ArrayIndexOutOfBoundsException: length=63; index=63 |
Hmm, changes has size of n-1, and the loop runs till n-1, so the bug. May be you can change array to be of size n. Better, you should play with this file based on what kind of stats you need etc |
Did these changes -> crash isn't there but data is not coming to the server/ |
some issue with registerReceiver(...) in SensorUpdateService.java file com.curefit.sensorapp.services.SensorUpdateService.onStartCommand(SensorUpdateService.java:56) |
Whenever the app tries to sync in background or when we open, it gives an error of "Sync Account Error".
Could you give a small flow diagram of how the flow should be when sending data to server on app launch or when in background.
This will make it easy to debug.
Thanks
The text was updated successfully, but these errors were encountered: