Problem in sending this url to local server

when i execute this code it shows Dialog Box like this "This Application
Stopped Unexpectedly Force to Close"and try Again....

Can any one tel me how to correct this....

thanks,
With Regards,
Raghav.S


This is my code:


             Button enter=(Button)findViewById(R.id.entr);



             enter.setOnClickListener(new OnClickListener(){


             public void onClick(View v)
             {
                 String str11="raghul";
                 String url="insert into tab1 values("+str11+")";
                 DefaultHttpClient client = new DefaultHttpClient();
                    HttpGet method = null;
                    HttpResponse resp = null;

                method = new HttpGet( new URI(url) );

                    resp = client.execute(method);


}
});
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to