Iconic list View gets very slow when a service (running music) starts in the background

by Dianne Hackborn » Wed, 21 Apr 2010 05:41:55 GMT


Sponsored Links
 Does the same thing happen in the standard music app?  If not, have you
looked at the code for that app to see what it may be doing different?




>



Iconic list View gets very slow when a service (running music) starts in the background

by Prajakta Shitole » Wed, 21 Apr 2010 05:56:15 GMT


 Hi Dianne,

This does not happen in the standard music app. Thanks for guiding, I will
look into the standard music app code to check what it does differently.

Thanks,
Prajakta





>>


Sponsored Links


Iconic list View gets very slow when a service (running music) starts in the background

by Prajakta Shitole » Wed, 21 Apr 2010 14:29:34 GMT


 Hi,

My list view is slow due to a different reason. It is not due to the service
which runs in the background. My list view gets slow due to my logic
implementation. The service runs in the background and does not affect the
list view which runs on the main UI thread.

Thanks,
Prajakta






>>>



Other Threads

1. How does NotificationService work?

I Know there is a system service out there handling toast, notification. But
how does it handle these events. In android.widget.Toast.java, I only found
INotificationService(which is defined by an aidl file) that handles it, I
couldn't no found any class in android system implemented the interface,
help!!!

-- 
Regards

-- 

2. How to set and get thread priority from Java and native layers

I have a multithreaded streaming app which has mainly the following 5
threads

1 Main App(UI) Thread
1 controller thread (in native)
1 audio decoder thread (in native)
1 video decoder thread(in native)
1 thread to query the head position of audio (in Java)
 Apart from this I have video rendering with OpenGL.

My problem is, if I query the thread priority using the
Thread.getPriority method (my native threads make callbacks to Java
and I am making the query at that point of time), I am getting the
priority of each of them as 5. For my audio query thread (the last one
in the list) I am explicitly setting the priority using
Process.setThreadPriority(Process.THREAD_PRIORITY_URGENT_AUDIO);

Also for my decoder threads, I am giving higher priority than my
controller thread(using pthread APIs in native). But still finally all
of them seem to have same priority.

Can anyone please tell me what is wrong here. Also what should I be
doing to increase the priority of my threads(both from Java and
native).

Thanks
KK

-- 

3. Send SMS in Android

4. Making the graphic layer transparent, for video playback

5. deserialize byte[]

6. Creating Menu Problem

7. How to build default applications as a seperate