Check out the Android blog, there's a recent post about this and related threading issues with examples.
http://android-developers.blogspot.com/2009/05/painless-threading.html Thanks S On 11 May 2009, at 13:53, sheik wrote: > > Hi.. > i am facing similar problem..as i am using network connection in the > main thread....can u fwd any code regarding creating thread inorder to > send the request...and thus avoiding force close error... > > kindly help in this regard.. > > thanking you..in advance.. > > regards, > Sheik; > > On Mar 13, 4:40 pm, dillirao malipeddi <[email protected]> > wrote: >> don't do any complex operations like network connection.. etc on >> main thread >> for those operations use separate thread >> >> if any time taken operations on main thread will cause fource close >> exception >> >> try to keep main thread as simple as possible.. >> >> On Fri, Mar 13, 2009 at 5:05 PM, zeeshan <[email protected]> wrote: >> >>> Hi Android Experts, >> >>> i am having a force close Dialogue msg for few seconds when i run my >>> application. >>> can anyone tell me why is that and how can i resolve it. >>> do i need to use thread to start my main activity? >> >>> any solution? >> >> -- >> Dilli Rao. M > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

