<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:layout_gravity="center"
>
<LinearLayout
android:layout_width="fill_parent"
- android:layout_height="fill_parent"
+ android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
boolean result = false;
try {
+
+ System.out.println("Check url " + url);
HttpGet request = new HttpGet(url);
HttpParams httpParameters = new BasicHttpParams();
// timeout to 1 seconds
- HttpConnectionParams.setConnectionTimeout(httpParameters, 1000);
+ HttpConnectionParams.setConnectionTimeout(httpParameters, 3000);
HttpClient httpClient = new DefaultHttpClient(httpParameters);
HttpResponse response = httpClient.execute(request);