I am trying to create a widget for my app that shows information from a web 
service (quite common I would say...)

I have read the documentation and used the provided example as a template: 
http://code.google.com/p/wiktionary-android/source/browse/trunk/Wiktionary/src/com/example/android/wiktionary/WordWidget.java

My app targets SDK 10, but running it on a 4.0.3 phone I get a 
NetworkOnMainThreadException.

As it seems to me that I am performing network access in the same way of 
the provided example, is it broken as well? Is it normal that as 
environment for the widget execution I get the one of the home app and not 
the one I have declared? It is clearly written in the documentation that 
the margins of the widget are affected by the target SDK version, so I 
would expect that that parameter is considered also for other aspects.

/Giuseppe

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to