hi this is my helper class where i check internal connection and xml paersing and use this class to another activity the problem is when server connected is working fine b
You need to target your applicationContext in the toast,i can't see you doing that anywhere? And you have outcommented the first line of your toast message?
Edit: Also really really bad codestyle to catch exception e. You should try to narrow down which kind of exception it is that you want to catch.