title: AppaholicsUpdateChecker: No Connection Issue
body: <p>I m new in the "Android Coding" Scene, i have programmed my first application, now i want to implement a auto-update function.</p>
  
  <p>Now i have found this library:
  <a href="https://github.com/RaghavSood/AppaholicsUpdateChecker" rel="nofollow">https://github.com/RaghavSood/AppaholicsUpdateChecker</a></p>
  
  <p>Now i have this onCreate function:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  UpdateChecker checker = new UpdateChecker(this, true);
  checker.checkForUpdateByVersionCode("http://app.XXX.in/version.txt");
  checker.isUpdateAvailable();
  checker.downloadAndInstall("http://app.XXX.in/apk/tGlApp.apk");
      }
  </code></pre>
  
  <p>If i Start now my application an ToastText appears that i have no Internet Connection, Updated failed, but i have a Internet Connection. Internet Access are also allowed in the Manifest File.</p>
  
  <p>The Code above is wrong?</p>
  
  <p>Here my Manifest File:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.tglapp"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="11"
          android:targetSdkVersion="17" /&gt;
  
      &lt;supports-screens
          android:largeScreens="true"
          android:normalScreens="false"
          android:smallScreens="false"
          android:xlargeScreens="true" /&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name="com.example.tglapp.MainActivity"
              android:configChanges="orientation"
              android:label="@string/app_name"
              android:screenOrientation="landscape" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;action android:name="android.intent.action.MAIN2" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.example.tglapp.MainActivity2"
              android:configChanges="orientation"
              android:label="@string/title_activity_main_activity2"
              android:screenOrientation="landscape" &gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.example.tglapp.MainActivity3"
              android:label="@string/title_activity_main_activity3" &gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>With this Update Script i need to allow other things which "android.permission.INTERNET" ?</p>