Advertisement
Jong

Start an activity from a thread - FXP

Jan 27th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1.     class MyThread extends Thread {
  2.         Context mContext;
  3.         public MyThread(Context ctx) {
  4.             super("MyThreadName");
  5.             mContext = ctx;
  6.         }
  7.         @Override
  8.         public void run() {
  9.             //....
  10.             mContext.startActivity(...;)
  11.             //...
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement