lwc:programming:mobile:android:threads:handlers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lwc:programming:mobile:android:threads:handlers [2022/02/23 14:34] John Harrisonlwc:programming:mobile:android:threads:handlers [2022/02/23 15:37] (current) John Harrison
Line 109: Line 109:
     }     }
     </code>     </code>
 +    
 +There are examples as yet unexplored of handlers posting runnables. For example, this sort of thing should work according to my brain and not tested by a living breathing compiler:
 +<code Java>
 +handler.post(new Runnable() {
 +                        @Override
 +                        public void run() {
 +                            Log.v("someCrazyCode","I got here");
 +                        }
 +                    });
 +</code>
 +===== Resources =====
 + * https://medium.com/mindorks/mastering-android-handler-4f710296bdc6
 +
  • lwc/programming/mobile/android/threads/handlers.1645648448.txt.gz
  • Last modified: 2022/02/23 14:34
  • by John Harrison