Re: [android-developers] Network operation every half sec.

2011-05-31 Thread Kristopher Micinski
Just FYI, if you truly intend for your device to make a network operation
every half second, users not constantly around wifi may dislike you... And I
would assume this would kill battery life...

Kris

On May 28, 2011 10:22 PM, Mahavir Jain vir.j...@gmail.com wrote:

Hi,

I want to make network operation in every half sec and depending on data, i
want to update the ListView continuously.

Following is my approach: Using thread and handler.postDelayed, it makes the
network request every sec and update only those views of the row in
ListViewwhich needs to be updated. It does not update
ListView using notifyDatasetChanged().

Though it updates the UI, but it takes time in updating the UI. Is it
because, I am using emulator?

Is this the right approach for this scenario? Any other best approach for
this?

Anyone handled such scenarios previously?

Thanks in advance.

Regards,

Mahavir Jain

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

[android-developers] Network operation every half sec.

2011-05-28 Thread Mahavir Jain
Hi,

I want to make network operation in every half sec and depending on data, i
want to update the ListView continuously.

Following is my approach: Using thread and handler.postDelayed, it makes the
network request every sec and update only those views of the row in
ListViewwhich needs to be updated. It does not update
ListView using notifyDatasetChanged().

Though it updates the UI, but it takes time in updating the UI. Is it
because, I am using emulator?

Is this the right approach for this scenario? Any other best approach for
this?

Anyone handled such scenarios previously?

Thanks in advance.

Regards,

Mahavir Jain

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