On Fri, Aug 19, 2011 at 1:45 PM, cellurl <[email protected]> wrote:
> I keep getting told that my code violates the UI and lifecycle rules
> and I have no idea how to find/fix it.
Who is telling you this?
> Then, I figured I needed to replace things like this:
> (TextView)findViewById(R.id.definition).setText("Hello");
>
> to now read:
>
> TextView t= (TextView)findViewById(R.id.definition);
> t.post(new Runnable() {
> public void run() {
> t.setText("Hello");
> }
> });
Which is correct depends upon which thread this is.
> Q: Are there ways I can flush out these bugs?
Not unless somebody actually tells you the "bug".
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training...At Your Office: http://commonsware.com/training
--
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