Posting Variables to webserver in android

view story

http://stackoverflow.com – i want to post a variable to this file on webserver. i am using free hosting company. http://locationmeter.comule.com/reg.php it is doing good on emulator but it is not working on device. here is the code public class MainActivity extends Activity { Button bSubmit; EditText name, age; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); init(); } private void init() { // TODO Auto-generated method stub name = (EditText) findViewById(R.id.edit (HowTos)