G
gummibumm
Neues Mitglied
- 0
Hey *,
I'm currently developing an activity which should send a message (http get) over the internet (telegram api).
In general this is working really nice!
But now I want to trigger such a message if the device is going for shutdown.
For this I registered a BroadcastReceiver which receives the ACTION_SHUTDOWN Intent.
This also works! But if I want to handle the receive... so if I actually want to send this message... I think my http client crashes or so... Do you have an idea about this?
Maybe the internet connection is not available on shutdown? (Would be bad :/)
Have a nice day!
Marcel
I'm currently developing an activity which should send a message (http get) over the internet (telegram api).
In general this is working really nice!
But now I want to trigger such a message if the device is going for shutdown.
For this I registered a BroadcastReceiver which receives the ACTION_SHUTDOWN Intent.
This also works! But if I want to handle the receive... so if I actually want to send this message... I think my http client crashes or so... Do you have an idea about this?
Maybe the internet connection is not available on shutdown? (Would be bad :/)
Have a nice day!
Marcel