Permission denied with uses-permission in AndroidManifest.xml
<p>I try to test my android application with <strong>MCE controller</strong> on my PC and defined <code>uses-permission android:name="android.permission.INTERNET</code> in AndroidManifestXML. Here is the manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      android:versionCode="1"
      android:versionName="1.0" package="com.ailtd.FrameworkClasses"&gt;
&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:name=".GUI.UserApplication"&gt;
        &lt;activity
          android:name=".GUI.TemplateActivity"
          android:label="@string/app_name"&gt;
          &lt;intent-filter&gt;
            &lt;action
              android:name="android.intent.action.MAIN" /&gt;
            &lt;category
              android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>I have looked through some threads connected with the same problem and some people say that this problem could be caused by firewall. After I switched off firewall I still get the same effect.
I test the application on emulator. </p>

<p>Here is LogCat output:</p>

<pre><code>07-15 09:54:45.580: DEBUG/CustomTCPSocket(924): Sending message
07-15 09:54:45.590: DEBUG/sendMessage(924): IOException: Permission denied (maybe missing INTERNET permission)
</code></pre>

<p>Any ideas?</p>
