otto Questions

4

Solved

In most of the case, when dealing with case User thread (AsyncTask) to perform background processing Pass back calculated result back to Activity or Fragment Activity or Fragment re-creatio...

2

Solved

I'm trying to update this RetroFit + Otto tutorial, so my code updated is: IWeather.java RetroFit 2.+ doesn't allow to return void, so instead of void getWeather(...) I added Call<Weather> ...
Plexiglas asked 7/7, 2017 at 8:38

4

Solved

I have a strange issue. I have an app which I deployed on an Android 4.4 device and use Otto library. I deployed the app on an Android 5.0 device. It still works. I retried on the 4.4 and the app w...

4

Solved

What is the best place to register and unregister to an event bus (like otto, EventBus, or tinybus) in an Activity and why? onCreate()-onDestroy() onStart()-onStop() onResume()-onPause() Otto's...
Vineland asked 24/3, 2015 at 15:31

2

I found a few articles talking about how RxJava/RxAndroid can replace event busses (such as otto) https://lorentzos.com/rxjava-as-event-bus-the-right-way-10a36bdd49ba#.7a4619qva https://medium.co...
Virgate asked 13/1, 2017 at 20:55

4

Solved

I have an activity and it launches a DialogFragment, on completion of an event the DialogFragment posts an event on the Otto Event Bus, this is to fire a method in it's parent activity. I've posted...
Continuum asked 23/8, 2015 at 9:14

7

Solved

Simple BusProvider.getInstance().post() bring exception not main thread. How to send event from Service to Activity with Otto event bus?
Katinakatine asked 15/3, 2013 at 11:53

1

In my Android apps i'm using Otto as event bus and Dagger for dependency injection. In the userguide of Otto and in many blog posts it's recommended to use injection to get a bus singleton. I have...
Stickseed asked 16/7, 2015 at 19:15

4

Solved

Is it possible to post event in one process (for example inside SyncAdapter which has android:process=":sync" manifest attribute) and receive it in another (inside regular app UI) with Otto or Even...
Trouper asked 29/8, 2014 at 12:20

3

Solved

I am a huge fan of open source contributions square has done to the Android community and was looking into their latest contribution Otto (event bus ) http://square.github.io/otto/ Digging deepe...
Cowhide asked 4/4, 2014 at 19:11

3

Solved

I stumbled upon Otto, and it looks like it's used as a replacement for Broadcast events. I read the doc but, I don't understand if there are much advantages to use Otto.
Chevrette asked 6/1, 2014 at 16:12

3

Solved

i started using OTTO by Square yesterday, so far i had a good start. Otto works great out of the Box when you have your Fragments already hosted in an FragmentActivity and you just need communicat...
Stgermain asked 7/11, 2012 at 10:40

3

Solved

I've got a SearchView setup, and I have a loosely decoupled architecture using Retrofit and Otto. I am wondering what the Best Practices are for Search in Android, or any mobile application in gen...
Ferrin asked 7/7, 2015 at 18:38

1

Solved

I am about to start development on an Android app. I am interested in using Otto or EventBus in my app to assist with making asynchronous REST network calls and notifying the main thread when the c...
Detonator asked 21/7, 2015 at 0:33

2

I seem to be having one of two issues here. Either an error like: java.lang.IllegalStateException: Event bus [Bus "default"] accessed from non-main thread Looper Or, if I've managed to "address"...
Vitta asked 3/7, 2013 at 4:39

1

Solved

I'm new to Otto and I'm having serious trouble making out its functioning together with Dagger dependency injector and JobManager. Whenever I launch my application, I keep getting the same error me...
Alves asked 24/3, 2015 at 7:47

2

Solved

we have an issue in our current app-version with the EventHandler from otto. We get a RuntimeException in our crash-log, with following description: "Reason: java.lang.RuntimeException: Could no...
Collen asked 13/6, 2014 at 10:46

1

Solved

In my code I'm listening for events using @Subscribe anotation: @Subscribe public void orderUpdate(OrderUpdateEvent event) My problem is that this method is called multiple times (1-3 depends fr...
Shultz asked 18/1, 2015 at 22:31

1

Solved

i have a singleton service class that pulls data from a server on a set schedule. as soon as the client has received the data, i trigger bus.post(new NewServerResponseEvent()); (http://square.githu...
Anthropogenesis asked 24/11, 2014 at 13:31

2

Solved

I've tried out Otto in my latest Android project, and it really does simplify communication between Objects a ton. However, I'm not certain if there can be any hidden problems from communicating be...
Fernyak asked 16/11, 2014 at 10:36

1

Solved

I am using Otto Event bus to subscribe to certain events in a ListFragment. The bus instance is stored and created in an subclass of Application, in other words, it bus should work as a singleton. ...

4

Solved

I am using Otto 1.3.3 and when I resume my application sometimes I get an IllegalArgumentException with the following stacktrace: Caused by: java.lang.IllegalArgumentException: Producer method for...
Shanan asked 15/5, 2013 at 4:24

1

Solved

I understand how to use Intents to communicate with the system/other apps. I understand how to use Intents within the same App. I also understand how to use Otto to communicate within the same App....
Dennisedennison asked 26/6, 2013 at 10:44
1

© 2022 - 2024 — McMap. All rights reserved.