Back to project page YourWiFi.
The source code is released under:
MIT License
If you think the Android project YourWiFi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.akisute.yourwifi.app.util; //from w w w .j a va2 s . c o m import android.os.Handler; import android.os.Looper; import com.squareup.otto.Bus; public class GlobalEventBus extends Bus { private final Handler mMainThreadHandler; public GlobalEventBus() { mMainThreadHandler = new Handler(Looper.getMainLooper()); } public void postInMainThread(final Object event) { mMainThreadHandler.post(new Runnable() { @Override public void run() { post(event); } }); } }