I develop AndroidApps with AndroidStudio I start to do a simple HttpPost Request and I had a problems, all post that I could find do this:
private void Check
You are obviously not handling the IO exceptions being thrown from the constructor:
see: Android docs on UrlEncodedFormEntity
What puzzles me is that your IDE is not reporting this, or how this code even compiles, let alone runs/debugs.
Edit: If you are new at this stuff, maybe it would be worth to take a look at: Android Volley , which is a quite simple yet effective library developed by Google for Android networking.