3 ms·
I guess just setting the phone to state to sending file while uploading the logs to the server was the solution. Is there a better way to solve this issue? The
by pkandathil 15y ago
I guess just setting the phone to state to sending file while uploading the logs to the server was the solution. Is there a better way to solve this issue? The user did not put it as part of the article.
- Pewpewarrows 15y agoMeh, to me that's just band-aiding the problem. The core issue here is that they anticipate getting the log from each user approximately once every day or two (that's on average when people plug in their phones to charge). I would just keep track of the timestamp of the previous log upload, and simply ignore the Intent if it's within a certain threshold (say, less than 12 hours ago).
- pkandathil 15y agoDo you think it makes sense with the mobile architecture to have an application store its current state? This is obviously a more general question regarding mobile application architecture. This would specifically to be handle broadcast listeners performing conflicting actions.
- etherealG 15y agoapplication state storage is part of the package with android isn't it? that's how apps always start up where you left off, even if the OS killed them to free up memory.
- ikhare 15y agoWe decided to upload when only when we had logs right when the user backgrounded the app. This way we don't fire a new connection just for logs.