Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Toast from FileObserver
  2. // Need handler for callbacks to UI Threads
  3.     // For background operations
  4.     final Handler mHandler = new Handler();
  5.  
  6.     // Create Runnable for posting results
  7.     final Runnable mUpdateResults = new Runnable() {
  8.         public void run() {
  9.             // Show the toast here.
  10.         }
  11.     };
  12.        
  13. mHandler.post(mUpdateResults);