rorist / android-network-discovery

Android network tool: Discover hosts and scan their ports, in your Wifi/3G network.
http://rorist.github.com/android-network-discovery/
586 stars 243 forks source link

How to detect devices connected to router using this library #29

Open A-Cheikh opened 3 years ago

A-Cheikh commented 3 years ago

Hello All,

I tried to understand how to use this code, please could you precise to me how to detect the devices connected to my router using my android app, could you please clarify to me this code?

Thank in advance

A-Cheikh commented 3 years ago

PLease any suggestion here?

rorist commented 3 years ago

Hello,

Sorry this app is very old and you have to figure out a way to use it xD

There are some intents that you can use to open the port scan from your app https://github.com/rorist/android-network-discovery/blob/master/AndroidManifest.xml#L33

You could probably import the classes similarly of what's been done in the discovery activity https://github.com/rorist/android-network-discovery/blob/master/src/info/lamatricexiste/network/ActivityDiscovery.java#L363 which uses the DefaultDiscovery by default, https://github.com/rorist/android-network-discovery/blob/master/src/info/lamatricexiste/network/DefaultDiscovery.java#L30

Cheers