Back to project page expo-connect.
The source code is released under:
GNU General Public License
If you think the Android project expo-connect listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package it.polimi.camparollo.expoconnectserver; //w w w . jav a2s .c o m import it.polimi.camparollo.expoconnectserver.wifi.ConnectService; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class CommandReceiver extends BroadcastReceiver { private static final String SESSION_ID_TAG = "sessionid"; private ConnectService service; public CommandReceiver(ConnectService service) { super(); this.service = service; } @Override public void onReceive(Context context, Intent intent) { String id = intent.getStringExtra(SESSION_ID_TAG); Log.d(ConnectService.TAG, "Command received, message to send: " + id); service.sendSessionId(id); } }