Why, yes. The blog post is good. But it inspires me to wonder: what is
Guy's native language? I ask because he gave a classic learner's
mistake confusing the gerund with the participle.

I refer to:

"Since everything happens on a single thread performing long
operations, like network access or database queries, on this thread
will block the whole user interface."

As it stands, 'performing' must be a participle, which leaves "like
network access or database queries" dangling without a role in the
sentence. But with moving just one comma (and adding the clarifying
parentheses), it now parses correctly as a gerund, to read:

"Since everything happens on a single thread, performing long
operations (like network access or database queries) on this thread
will block the whole user interface."

I am sure many readers of this forum will find that version of the
sentence much more memorable as well as easier to follow.

On Nov 11, 10:36 am, Lance Nanek <[email protected]> wrote:
> The painless threading blog post here mentions a lot of nice 
> ways:http://android-developers.blogspot.com/2009/05/painless-threading.html
>
> On Nov 9, 12:12 pm, Chris <[email protected]> wrote:
>
> > Hello everyone, I'm new to Android (but not Java), so bear with me.
>
> > I'm trying to create a stopwatch-type UI, where a digital timer is
> > displayed and incrementing every second.  I started off creating 
> > atextviewand attempted to update thistextview(TextView.setText())
> > using either the TimerTask class to update the view in a timer as well
> > as updating the view in the same thread, using a Thread.sleep(1000).
>
> > In either case, the view does not get updated. Obviously this doesn't
> > seem to be the proper way to go about updating a text view.  Any
> > suggestions on the proper way to notify thetextview?
>
> > Thanks
> > Chris

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to