0

I am trying to send HTTP GET requests to all IPs in a subnetwork (192.168.1.2 - 192.168.1.254) more than 200 requests, so I can find all devices that I need to interact with, depending on the response I get from all IPs in the subnetwork.

Currently using AsyncTask, but can't find the right way. When I make chain AsyncTask, it's taking forever, like 10 sec. for 5 requests. Thanks in advance !

Geesha
  • 1
  • 3
  • 1
    Possible duplicate of [running parallel AsyncTask](http://stackoverflow.com/questions/13910508/running-parallel-asynctask) – Adrian Coman Mar 22 '17 at 07:20
  • See also [running-multiple-asynctasks-at-the-same-time...](http://stackoverflow.com/questions/4068984/running-multiple-asynctasks-at-the-same-time-not-possible) – Aung Myo Linn Mar 22 '17 at 07:29
  • Both suggestions are for two AsyncTasks, I think I have read everything, maybe AsyncTask isn't the right way idk. – Geesha Mar 22 '17 at 07:37
  • Hello @Geesha , so what approach you finally took? – JOA80 Apr 26 '17 at 06:19

0 Answers0