Example to connect wifi 2 wifi cellphone.
p2pwifi is hosted in the following web site
https://github.com/tonismar/p2pwifi
If you think the Android project p2pwifi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of p2pwifi.
Item | Value |
---|---|
Java File Count | 5 |
Supported screen sizes | [mdpi, ldpi, hdpi, xhdpi] |
Minimum SDK Version | 14 |
Activity Count | 1 |
Fragment Count | 1 |
Required Permissions | android.permission.ACCESS_NETWORK_STATE android.permission.ACCESS_WIFI_STATE android.permission.CHANGE_NETWORK_STATE android.permission.CHANGE_WIFI_STATE android.permission.INTERNET android.permission.READ_PHONE_STATE android.permission.WRITE_EXTERNAL_STORAGE |
Asset File Names | assets\sample_file.txt |
There are 3 image files in p2pwifi. The names of the image files are listed as follows.
ic_action_discover.png ic_action_on_off.png machine.png
The following screenshort is generated from the image listed above.
p2pwifi has the following Java source files.
com.example.android.wifidirect.DeviceDetailFragment.java com.example.android.wifidirect.DeviceListFragment.java com.example.android.wifidirect.FileTransferService.java com.example.android.wifidirect.WiFiDirectActivity.java com.example.android.wifidirect.WiFiDirectBroadcastReceiver.java