How to natively (C++) receive notifications when there is an Internet Connection ( 3G
Hello All,
I'm developing a C++ application for the android that needs to talk
with a server whenever there is an internet connection available. If
the internet connection is cut-off the application needs to "sleep" in
order to reduce the battery consumption. If the internet connection is
back the application should "awake".
I'm searching for any kind of event notification available for C++. I
don't want to use pooling.
I know that in java we receive these notifications from the
connectivity service.Can we trap them natively?
Thanks,
Carlos B.
|