android intent has other flags -
i new android developing , looking @ code of guy worked here before. check connect server. works great (see d/connectivitychecker(29802): isonline=true). create new intent , set flag (public static int online_flag = 1) can see in intent.setflags 1. send intent via sendbroadcast connectionchangereceiver. and if read out intents flag not 1 17! this code of connectionchangereceiver: /** * receives notifications connectivity changes */ private broadcastreceiver connectionchangereceiver = new broadcastreceiver() { @override public void onreceive(context context, intent intent) { log.d("connectionchangereceiver","intent.flags(): '" + intent.getflags() + "' icm.online_flag: '" + internetconnectionmanager.online_flag+"'"); setonlinemode(intent.getflags() == icm.online_flag); } }; this logcat: 05-08 14:28:05.615: v/icm(29802): checkconnectivity 05-08 14:28:05.615: v/icm(29802): connectivityche...