Apps Error on executing Http post in honeycomb

I have two Android mobile devices one v2.3 api 9 and one v3.1 honeycomb I want to post an http api link for sms code. It turns that i got an error in honeycomb and the other mobile works fine this is the code

Code:
public void sendSMS(String phone_num, int password)
{
try
{               
    HttpClient hc = new DefaultHttpClient();
    HttpPost post = new HttpPost("http://www.google.com/");
    hc.execute(post); // I got an error here    
}
catch(IOException e)
{

    Log.e("error", "error");
}  
}
 
Top