I am developing an app in which I want to shows list of all devices which are connected to one router using wifip2p same like in xender. I don't know how to do this because I am new in Android programming.

I am developing an app in which I want to shows list of all devices which are connected to one router using wifip2p same like in xender. I don't know how to do this because I am new in Android programming.

This GitHub Repo called Android Network Discovery might help you to get list of all contected devices.