Fix for App Not Responding Error

Created Async Tasks to handle the data transmission to the web server