Programmatically Knowing the Application Name Using WiFi

I want to know which of my applications uses Wi-Fi. I got one way programmatically looking at the Android manifest file of each application and figuring out if android.permission.ACCESS_WIFI_STATE permission is allowed. But that does not tell me whether the application currently uses WiFi or not, although it does have permission. So I need another way to determine which of my current applications is using Wi-Fi.

If possible. Can I find out the data that is sent from my device using a WiFi connection.

+4
source share

Source: https://habr.com/ru/post/1403900/


All Articles