Slow Scrolling

by Al » Thu, 12 Mar 2009 07:01:07 GMT


Sponsored Links
 Hi, sometimes when I try to scroll using a scrollview (wrapped around
a textview), there will be no response. I've noticed this in both my
apps and the only common thing between them is the textview in both
apps use Spanned (SpanableStringBuilder to be exact) text. This
happens even when there is no activity on the window and no anr pops
up either.

Any idea what would be the cause?
Thanks.
--~--~---------~--~----~------------~-------~--~----~



Slow Scrolling

by AlCapwn » Thu, 12 Mar 2009 07:03:56 GMT


 Whoops, forgot to add this. When the freeze happened, I generated a
bugreport and it says this:

"main" prio=5 tid=3 TIMED_WAIT
  | group="main" sCount=1 dsCount=0 s=0 obj=0x400103e8
  | sysTid=2339 nice=0 sched=0/0 handle=-1096221588
  at java.lang.Object.wait(Native Method)
  - waiting on <0x1b6408> (a android.os.MessageQueue)
  at java.lang.Object.wait(Object.java:195)
  at android.os.MessageQueue.next(MessageQueue.java:144)
  at android.os.Looper.loop(Looper.java:110)
  at android.app.ActivityThread.main(ActivityThread.java:3739)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
  at dalvik.system.NativeStart.main(Native Method)

Not too sure why it would be wait()ing :s


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


Sponsored Links


Slow Scrolling

by Romain Guy » Thu, 12 Mar 2009 07:16:43 GMT


 It's waiting for events in the main events queue. That's pretty normal
to see this.







-- 
Romain Guy
Android framework engineer
romain...@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

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



Slow Scrolling

by AlCapwn » Fri, 13 Mar 2009 02:35:35 GMT


 Is there any way to get around the problem of it being non responsive?
The lack of feedback to the scroll attempt is very noticeable.





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



Slow Scrolling

by Mariano Kamp » Fri, 13 Mar 2009 06:35:54 GMT


 I vaguely remember a similar problem too. Do you also see the dreaded "You
used the BufferedReader default constructor" (something like that) message?
I had the feeling that it lead to a lot of garbage collections which would
in turn explain the unresponsiveness I suppose.
Btw. I got rid of the Spanneds and now do the actual work (in my case HTML
rendering, more exactly translating html entities to text) ahead of time.








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



Slow Scrolling

by AlCapwn » Sat, 14 Mar 2009 02:01:48 GMT


 n Mar 12, 10:35pm, Mariano Kamp <mariano.k...@gmail.com> wrote:

I see the message but I don't think that is the problem, I've let the
app run for 10+ mins and in that time, GC was only called about 6
times. Bear in mind, this was with an active connection to a server
and continuous update (the data was coming at a very fast rate) of the
textview with the data from the server. (The server connection runs it
in's own thread.)

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



Slow Scrolling

by Mariano Kamp » Sat, 14 Mar 2009 03:11:40 GMT


 hen I don't know -
But what sounds strange to me is that you get lots of input (new objects,
some of them possible get discarded very quickly during transformations?
growing the heap?) and still only have a garbage collection every 90
seconds?

On Fri, Mar 13, 2009 at 7:01 PM, AlCapwn <alcapw...@googlemail.com> wrote:


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



Other Threads

1. Incognito is back!!!

So, I'm finally back!!! I'm done with my app for the iPhone and
finally have some time to spare to this forum.

First of all, congratulations are in order. Muthu, you bastard, your
App won $100K. Well, congratulations to you.

So what happened after I lost the challenge? Well, had the carton box
near my desk been alive, I would currently be guilty of {*filter*}. :)

Right, after loosing the challenge I started to work {*filter*} my IPhone
app. It was like hell and several times I wanted to quit but I finally
completed it. Well it is now in the AppStore. Unfortunately, because
I'm incognito, I cannot tell you which one it is. I was thinking about
submitting it to SlideMe or some of the other Android apps but first I
will see if it is even worth it.

Anyway, just wanted to say hi to you guys, specially Muthu, Shane,
Peli and other Android hard cores.

Hopefully they'll announce challenge 2 soon. I'm ready for some action
now!
--~--~---------~--~----~------------~-------~--~----~

2. OI Shopping list

The OpenIntents shopping list is available for download at the store
of your choice:

* http://www.openintents.org/en/download
* http://slideme.org/content/oi-shopping-list
* http://andappstore.com/AndroidPhoneApplications/apps/2083

The Open Intents Shopping list lets you keep track of your shopping
items. You can also use it for other kinds of check lists, for example
for ToDo lists or party guest lists.

Your feedback is welcome!

Peli
www.openintents.org



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

3. Issue with Calendar APIs

4. RingtoneManager

5. Long Clickable View

6. How do I get an instance of android.content.pm.PackageInfo to read the attributes on my manifest file?

7. WebView opens links in default browser instead of using itself