On Mar 12, 10:35 pm, Mariano Kamp <[email protected]> wrote: > 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.
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.) > 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. > > On Thu, Mar 12, 2009 at 7:35 PM, AlCapwn <[email protected]> wrote: > > > 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. > > > On Mar 11, 11:16 pm, Romain Guy <[email protected]> wrote: > > > It's waiting for events in the main events queue. That's pretty normal > > > to see this. > > > > On Wed, Mar 11, 2009 at 4:03 PM, AlCapwn <[email protected]> > > wrote: > > > > > 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 > > > > On Mar 11, 11:00 pm, Al <[email protected]> wrote: > > > >> 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. > > > > -- > > > Romain Guy > > > Android framework engineer > > > [email protected] > > > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

