
blackpearl wrote:cs_cckai wrote:Hi,
Actually, I have try your code, but it throw to exception with unknow error, I found that when it run
InputStream is = ucon.getInputStream();
then throw exception.
Can anyone tell me why?
Did you Specify Permission in AndroidManifest file? In the new version, permission needs to be granted.
Please add the following line in AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
http://code.google.com/android/devel/security.html



yuriman wrote:-snip-
forgot to add internet access in manifest

ianwong wrote:yuriman wrote:-snip-
forgot to add internet access in manifest
nope and I believe if internet access permission does not enabled in manifest, it should result error loading page instead of holding everything during download.
anyway, problem solved by creating new thread for each file it downloads.





Berzerk wrote:If anyone is still having problems with character encoding, character set, unicode, etc...
Here is what worked for me:Using java Syntax Highlighting
myString = EncodingUtils.getString(baf.toByteArray(), "ISO-8859-1");Parsed in 0.033 seconds, using GeSHi 1.0.8.4
That line replaced the original line in the GetDataFromWeb tutorial.
The characterset "ISO-8859-1" works perfect for Portuguese and similar languages. For other languages, look up the appropriate characterset and replace it.
Don't forget to include:Using java Syntax Highlighting
import org.apache.http.util.EncodingUtils;Parsed in 0.034 seconds, using GeSHi 1.0.8.4
-Berzerk



Users browsing this forum: No registered users and 4 guests