I solved this using AsyncTask, thanks both for replying
On Nov 13, 2:20 pm, Stelios wrote:
> 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 and
I was exactly aware of the AsyncTask but in the end i solve it doing
it that way. Thanks
On Nov 14, 5:08 am, GMLチェックツール wrote:
> Why not to use AsyncTask class.
> For me, it is the best approach for your case.
>
>
>
> (2011/11/14 9:56), BCS wrote:
> > move FetchEmails e outside of the curly brace
Why not to use AsyncTask class.
For me, it is the best approach for your case.
(2011/11/14 9:56), BCS wrote:
move FetchEmails e outside of the curly braces and declare in the
scope where you need to use it
On Nov 13, 8:20 am, Stelios wrote:
I am a beginner in Android platform and i have encou
move FetchEmails e outside of the curly braces and declare in the
scope where you need to use it
On Nov 13, 8:20 am, Stelios wrote:
> 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
oops sorry I forgot to post code so it can help people...
this updates and then notifies a list adapter which has an observer.
/**
* Background task to verify the create user action. When the
action comes back
* it could inform the client to sync all data if the username and
passwi
>or activity, you can use runOnUiThread(Runnable).
ooh thats easy too.
UpdateTask won out. It was sick easy to wire up and use and now I can
do all this backgrounded threaded stuff that can update the UI. I am
kindof surprised that the Handler message dispatch doesn't just behave
the same way. I
Or if you do need to use a thread and it is an inner class of the view
or activity, you can use runOnUiThread(Runnable).
On Nov 26, 11:04 pm, Clay <[EMAIL PROTECTED]> wrote:
> wow.
>
> UpdateTask is killer. I will probably use hackbod's simpler approach,
> but I am seriously thinking of jacking t
wow.
UpdateTask is killer. I will probably use hackbod's simpler approach,
but I am seriously thinking of jacking that in somehow. sweet.
nice photos.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Develop
Also, if you just want to dismiss the window after a timeout, you
don't need to use a thread at all, just create a Handler in the
current (main thread) and post a delayed message or runnable to it.
See the use of sendMessageDelayed() here for an example:
http://code.google.com/android/samples/Api
Hi,
You can use threads but all the views, and all the views related APIs,
must be invoked from the main thread (also called UI thread.) To do
this from a background thread, you need to use a Handler. A Handler is
an object that will post messages back to the UI thread for you. You
can also use t
10 matches
Mail list logo