How to update View object on main thread by background thread

by Anh Khoa Nguyen Pham » Wed, 04 Mar 2009 15:56:06 GMT


Sponsored Links
 serTask class is useful but in this case, if i want to fix my problem in my
code, can you help me to do that?
I really appreciate your help !
Thanks,
NPAK

On Wed, Mar 4, 2009 at 2:15 PM, Clay <claytan...@gmail.com> wrote:


--~--~---------~--~----~------------~-------~--~----~



How to update View object on main thread by background thread

by Anh Khoa Nguyen Pham » Thu, 05 Mar 2009 12:00:31 GMT


 i Clay,

Thank for your help so much,
Now, i can fix my problem.I insist to find way to fix my problem in my code
because it will makes my skill better than using someone's code. But next
time, i will use UserTask to do that.

Best regard,
NPAK

On Thu, Mar 5, 2009 at 9:54 AM, Clay <claytan...@gmail.com> wrote:


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to update View object on main thread by background thread

by Anh Khoa Nguyen Pham » Thu, 05 Mar 2009 12:05:58 GMT


 i Clay,

Thank for your help so much,
Now, i can fix my problem.I insist to find way to fix my problem in my code
because it will makes my skill better than using someone's code. But next
time, i will use UserTask to do that.

Best regard,
NPAK

On Thu, Mar 5, 2009 at 9:54 AM, Clay <claytan...@gmail.com> wrote:


--~--~---------~--~----~------------~-------~--~----~



How to update View object on main thread by background thread

by Dianne Hackborn » Thu, 05 Mar 2009 13:10:51 GMT


 o just do something every so often, you really shouldn't use a thread (or
UserTask), just Handler.sendDelayedMessage(), which is a lot lighter-weight.

On Wed, Mar 4, 2009 at 8:05 PM, Anh Khoa Nguyen Pham <npak...@gmail.com>wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Performance problems (CPU usage up to 100%)

Hello,
i have a 5" touchdisplay with a at91g45 400 Mhz CPU and a ported
Froyo.

If I touch the screen, the system_server uses up to 100% of CPU.
Also the touchinputs are very slow.
I can see this by opening the browser and type one letter at the touch-
keyboard.
It needs a very long time to put the typed letter in the textfiled and
even after waiting some time I can see the popped up letter at the
screen.

has anybody an idea what could be the reason for this problem?
I am grateful for any hint.

Thanks

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. appslib problems

I just found out (by accident) that one of my apps on Appslib is not
listed anymore for the a5it since it (supposedly) failed some test.
This is quite annoying since a) I didn't get any kind of notification
that the status of my app had changed (it worked perfectly well before
- same apk, same device), b) the app works fine on my own a5it, c)
there is not the slightest bit of information on *why* exactly it
failed.
Anyways, I sent a complaint to Appslib admins. And if you have apps on
Appslib, go and check whether it's still available for all devices...

-- 

3. can magic sys rq be used in android kernel debugging ?

4. problems with Typeface

5. Layouts for tablets in the wild - Dell Streak for example

6. Clarification about ImageView.setImageURI()

7. One more question about different size screens - how to use extra space? How to code for it?