Does the emulator even have connectivity? For example, can you browse through the Browser?
On Wed, Jan 26, 2011 at 1:09 PM, guymac <[email protected]> wrote: > My app attempts to do a https post from an AsyncTask's doInBackground > method. The app has <permission > android:name="android.permission.INTERNET"></permission> in the > manifest in the correct location (it's the last line before </ > manifest> so it's at the same level as the <application> sibling > element). > > But, while running in the emulator, it fails to get permission to > lookup the IP of the host, and if I switch to using a dotted quad > instead of a hostname, it gets a Permission denied socket exception. > > Please help, I'm at my wit's end, it looks like everything is correct > from what I have read. Is it because the async thread doesn't have the > same permissions as the application? If so, what is the correct way to > spawn a potentially long-running http request from an activity? > > Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

