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.expoconnect.wifi; //from w w w . ja v a 2s. co m import android.net.wifi.p2p.WifiP2pManager.ActionListener; import android.util.Log; public class InfoActionListener implements ActionListener { private StartActivity context; private String failureMsg; private String successMsg; public InfoActionListener(String successMsg, String failureMsg, StartActivity context) { this.successMsg = successMsg; this.failureMsg = failureMsg; this.context = context; } public void onFailure(int reason) { Log.d(StartActivity.TAG, this.failureMsg + " ErrorCode: " + reason); } public void onSuccess() { Log.d(StartActivity.TAG, this.successMsg); } }