Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Access Point Change detection (WiFi)

Access Point Change detection (WiFi)

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Access Point Change detection (WiFi)

Postby Hera_999 » Wed Mar 28, 2012 3:19 pm

Hello

My application has to open a socket and send/receive some message to
the server. This works fine but the problem is when I move inside the
building, then the device changes from one access points to the other
(same wifi network). In that moment, I have (1) to store the messages,
(2) create again the socket and (3) send stored messages. I not able
to recognize that moment and I am not storing all messages. I
detect “A Connection timed out” exception in the BufferedReader and
then I start storing messages.

I have tried to detect that moment by this registering to this Intents
but I am still missing messages:

Code: Select all
//To detect Connectivity changes.
cmIntent.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
cmReceiver = new connectionChangeReceiver();
context.registerReceiver(cmReceiver, cmIntent);
intentFilter intentFilter = new IntentFilter();
intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);
intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
context.registerReceiver(cmReceiver, intentFilter);


Thank you so much
Hera_999
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Mar 28, 2012 3:12 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests