i am getting networkonmainthreadexception when i try to download the file
Post by:sam liya
, Ranch Hand
I have a app which downloads the pdf file from url.
when i ran this app in android 2.3(API 10) version phone its working fine.
but when i ran this app in a Android Tab 4.0(API 14) it gives me below exception
I check and found that this exception occurs when we run network related operation in main thread.So how it rans on ANdroid 2.3 version phone?
Post by:Ulf Dittmer
StrictMode was expanded in Android 3. You need to allow network activity on the main thread now IIRC.
This thread has been viewed 521 times.
All times above are in ranch (not your local) time.
The current ranch time is Sep 24, 2018 11:37:54.