Wrox Programmer Forums
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 10th, 2012, 05:20 AM
Authorized User
Join Date: Jan 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Default Unable to Access web

String https_url = "http://www.google.com/";
URL url;

try {

url = new URL(https_url);
HttpURLConnection con = (HttpURLConnection)url.openConnection();
int responsecode = con.getResponseCode();

} catch (MalformedURLException e) {
} catch (IOException e) {
in getresponsecode line gives error.

How can Solve this?
Old May 17th, 2012, 12:54 AM
Registered User
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to Access web Reply to Thread

Try these lines before int responsecode = con.getResponseCode();

Also check if you have added the following line to your Manifest file
<uses-permission android:name="android.permission.INTERNET"> 
Best of luck!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect web server arnab-jit ASP.NET 3.5 Professionals 0 January 24th, 2011 10:38 AM
UNABLE TO PUBLISH WEB SITE JORGEMAL Visual Studio 2005 0 April 2nd, 2008 06:09 PM
Unable to get project file from web server hits_2006 BOOK: ASP.NET Website Programming Problem-Design-Solution 4 May 29th, 2007 09:39 PM
Unable to complete web request. Web Exception erro shazza Biztalk 0 October 27th, 2006 06:43 PM
Unable to use the DLL in C# in Web application. rsaluja C# 0 September 27th, 2003 11:56 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.