[android-developers] Threads in Android (NetworkOnMainThreadException with Javamail) acting very strange

2011-11-13 Thread Stelios
I am a beginner in Android platform and i have encountering a serious problem. I want to fetch emails from gmail and therefore i have created a class that does that. However when i run my class in android NetworkOnMainThreadException. So i have created new Thread with a new Runnable as below :

[android-developers] Threads

2011-09-02 Thread Steven Bruce
I have thee threads in my bluetooth program. Both my AcceptThread and ConnectThread create a newConnectThread from within their Thread class but my program seems to crash at this point. Are you not allowed to start a new thread from within a thread class? -- You received this message because you

[android-developers] Threads

2010-11-30 Thread Robert
Hello everybody, I have some trouble with threads. The thing is the following: I have my main Activity, which is doing some OpenGL and should be doing it at all time. In parallel to that I start another activity, which is waiting for some network traffic, once there arrives sth a variable should

Re: [android-developers] Threads

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 4:47 AM, Robert sebastianar...@hotmail.com wrote: Why is that the case, I am getting really desperate, can anybody help please!?!? Log each time the variable is assigned to - maybe you're resetting it to false somewhere.

[android-developers] Threads or ASyncTask?

2010-04-13 Thread jfbaro
Hi, I am working on a simple application (studying purposes) which list all the files from a selected folder. On top of that I would like to have a search feature where the user can search for files (the code for that is already in place). Now, I was thinking about having the search running in

[android-developers] Threads and Screen Orientation Change

2009-08-29 Thread CraigsRace
Hi, In the following sequence of events: 1. Start a new thread (as a result of a button click - or similar). 2. User changes the screen orientation (causing the Activity that started the thread to be destroyed). 3. Thread finishes, and wants to do some dialog (or any UI) work. However, doing a

[android-developers] Threads for networking and DatagramSocket

2009-07-29 Thread Lex
My Android app is exchanging traffic messages via UDP with a server - binary messages of up to 60 Bytes. The server I'm using (external, don't have access to code nor can I convince the developer to change stuff :( ) is identifying the clients solely through sockets (no other type of client ID

[android-developers] Threads, Message Queue, and Loopers

2009-01-01 Thread iliketolearn
I have a few questions and points of clarification. Any help is appreciated. 1) Does each thread have it's own message queue? Does each process have it's own message queue? Or, is there simply 1 global system message queue? 2) If there are in fact multiple message queues, when there is a System