Queue a message on Android to be sent to the server when network becomes available
<p>An application on Android phone (4.0.4 or newer) needs to send a notification to the server (very small one, could fit in 1024 bytes). The problem is that the network might not be available at the moment.</p>

<p>Usually the application would try again once the network becomes available, but the message has to arrive if the application itself gets uninstalled before that happens.</p>

<p>If that changes anything, my specific case requires the message to be sent when the user disables or uninstalls our device administrator application.</p>

<p>For now I expect this to be not possible but maybe someone can think of a solution. One possibility I can see is sending a SMS in such case but it is hard to receive it at the server end.</p>
