Building Android Login with PHP and mysql

view story

http://stackoverflow.com – i've created my android login with connection to my PHP and mysql, the thing is, every time i run my program and inputting the right email and password it always says android.os.NetworkOnMainException in my EditText, or when i'm deleting the code for that nothing happens. Did i made mistakes in my codings or am i missing something. Okay, this are my codes guys. Android: ** public class LoginActivity extends Activity { /** Called when the activity is first created. */ EditText inputEmail ; EditText inputPassword ; Button btnLogin ; public void validation() { if( (HowTos)