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; /*from w ww .j a v a 2 s . com*/ import it.polimi.camparollo.expoconnectserver.wifi.ConnectService; import android.net.wifi.p2p.WifiP2pManager.ActionListener; import android.util.Log; public class InfoActionListener implements ActionListener { private ConnectService context; private String failureMsg; private String successMsg; public InfoActionListener(String successMsg, String failureMsg, ConnectService context) { this.successMsg = successMsg; this.failureMsg = failureMsg; this.context = context; } public void onFailure(int reason) { Log.d(ConnectService.TAG, this.failureMsg + " ErrorCode: " + reason); } public void onSuccess() { Log.d(ConnectService.TAG, this.successMsg); } }