@@ -0,0 +1,901 @@
+package app.iamin.iamin;%0A%0Aimport android.os.Handler;%0Aimport android.os.Looper;%0A%0Aimport com.squareup.otto.Bus;%0A%0A/**%0A * Created by Markus on 13.10.15.%0A */%0Apublic class BusProvider %7B%0A%0A    private static final EventBus BUS = new EventBus();%0A%0A    public static EventBus getInstance() %7B%0A        return BUS;%0A    %7D%0A%0A    private BusProvider() %7B%0A        // empty%0A    %7D%0A%0A    public static class EventBus extends Bus %7B%0A        private final Handler mainThread = new Handler(Looper.getMainLooper());%0A%0A        @Override%0A        public void post(final Object event) %7B%0A            if (Looper.myLooper() == Looper.getMainLooper()) %7B%0A                super.post(event);%0A            %7D else %7B%0A                mainThread.post(new Runnable() %7B%0A                    @Override%0A                    public void run() %7B%0A                        post(event);%0A                    %7D%0A                %7D);%0A            %7D%0A        %7D%0A    %7D%0A%7D

Create BusProvider