[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Vivek Bhusal
Some body please help

-- 
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

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread bob

>
> *This is only thrown for applications targeting the Honeycomb SDK or 
> higher. Applications targeting earlier SDK versions are allowed to do 
> networking on their main event loop threads, but it's heavily discouraged.
> *


On Tuesday, August 21, 2012 5:47:45 AM UTC-5, Vivek Bhusal wrote:
>
> I am working on application where i 
> get android.os.NetworkOnMainThreadException error... I studied about this 
> error. which says, i can use network task in main program and similar.. i 
> need to use AsyncTask to do network related task in next thread...
> I even tried to use AsyncTask but couldnt figure out.. Can anyone here 
> help me with this problem. I have my code uploaded in 
>
> https://github.com/Vivekbhusal/RSSFEED 
>
> i have checked, application is working. i mean there is no problem in 
> application coding.. so you dont have correct other part of coding... 
> Also, when i deploy my application in Google API, it works perfectly fine, 
> but in other AVD it shows problem.
>
> Thanks in advance
>

-- 
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

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-23 Thread Juned Khan
Hi Vivek,

If you are working on the Honeycomb or higher vesrsion of android then you 
can not do any long running or networking task in main thread. you have to 
handle this tasks using 
AsyncTaskclass.
 please read the documents it will be more clear to you.

Thanks
Juned Khan 

-- 
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

Re: [android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Harri Smått
Study AsyncTask or spawn a regular Java Thread where you do XML fetch and
parsing. Now it's all written within onCreate method. It shouldn't be a
problem to find better examples on how to use them than I can give.

--
H
On Aug 22, 2012 5:38 PM, "Vivek Bhusal"  wrote:

> Some body please help
>
>  --
> 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

-- 
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