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

by praj » Wed, 21 Apr 2010 05:17:05 GMT


Sponsored Links
 Hi,

I have an iconic list view which has lazy loading implemented. I have
used a wrapper class to improve its efficiency (wrapper class which
stores the ids of the list view) . My application is a media player
application where I have a list of songs and when the user clicks on
the songs the songs start playing (in the service which is in a
different background thread). When the songs start playing the list
view scrolling becomes really slow.

Please can any one let me know how we can optimize the scrolling of
the list view when a service is running in the background and if I am
missing on anything.

Thanks,
Prajakta

--



Other Threads

1. HTC Incredible suffering a reset while service running.

Beta tester has reported that while my service is running, the phone
reboots itself. Two beta testers have both reported this, both on the
HTC Incredible.

I can think of what I would do to cause a soft reset if I were trying,
which I'm not. After 5-10 minutes or about 1000 files downloaded, the
phone resets as if it were just powered up.

I am aware that what the service is doing probably puts some amount of
stress on the phone - downloading 1000s of small files and writing
them to the storage card. But, as far as I can tell, memory usage
should be fairly flat and is not monotonically increasing. I am not
able to cause a similar crash on my wimpy G1 nor on a 2.1 emulator
even after hours of similar conditions.

One of them has sent me a log from XtraLogic Log Collector. It had
nothing useful and doesn't seem to show anything before the crash.

Can anyone give me some advice on how to track this down?

Does anyone know, in general, what would cause a reset on an HTC
Incredible?

The only suspicion I would go on is some sort of memory overrun. I
think that would kill the service before it brought the phone down,
but who knows.

Nathan

-- 

2. Trouble with pendingIntent

Hi everybody,
my problem is this: I have a Main Activity wich have a button, when i
click on that, i execute

moveTaskToBack(true);

So, move activity to back, without finish it.

Now, i have a notification, showing a message. When the user click
there i want to restore the Main Activity (with pendingIntent, etc
etc). So, my event is onRestart(). Thats OK.

My problem is when i publish my aplication, creating the .apk . It
behaves differently!! When the user click over notification, create a
new intent and then a new Instance of Main Activity!! So, it never
enter to onRestart() event.

I dont understand why mi application behaves differently when publish
it.

Can anybody help me please?

Sorry for my bad english.

Thanks!!




-- 

3. recognizing gpio buttons in userspace

4. Fwd: Touchscreen support for 7 Inch LCD panel

5. Crashing under Android 2.2. APIs update soon?

6. Finger swipe in Android API level 3 (OS 1.5) ?

7. Radio button layout.