Questions tagged [otto]

Otto is an event bus designed to decouple different parts of your application while still allowing them to communicate efficiently. It is designed with Android-specific use cases in mind.

Otto is an event bus designed to decouple different parts of your application while still allowing them to communicate efficiently. It is designed with Android-specific use cases in mind.

Forked from Guava, Otto adds unique functionality to an already refined event bus as well as specializing it to the Android platform.

186 questions
0
votes
1 answer

Using otto for inter fragment communication - dependency injection confusing

I wish to use Otto for inter-fragment communication. I want to do this using best practices if I can help it. The Otto example on Github uses a singleton for the Bus object, but recommends using dependency injection. I'm new to both of these…
0
votes
1 answer

Using single Cursor for multiple ListViews

This is a continuation of a research spawned by the answer to my older, broader question. Is it correct to use a single Cursor (obtained via CursorLoader) to feed two distinct views, namely: ListView via…
-1
votes
3 answers

How to make a synchronous call using Retrofit on Android

I have a login view in an android app that I would like to function synchronously. That is, I want the user to stay on the page until the login rest call completes. If it fails, the user can reenter their id and password. If it is successful they…
user6627139
  • 406
  • 6
  • 16
-1
votes
1 answer

Retrofit + Otto + AA, How to do simple get request?

I am using Android Annotation for boilerplate, and Retrofit for Api calls, While doing post requests through retrofit I discovered a Some problems: When i am calling asynchronous call to "GET" request using Retrofit, I need to do some operation just…
Zulqurnain Jutt
  • 1,083
  • 3
  • 15
  • 41
-1
votes
2 answers

Otto - subscribe multiple events in the same Fragment/Activity

I am using Retrofit with Otto. My problem is how to subscribe to multiple events in the same Fragment(or Activity). According to the official doc "The method should take only a single parameter, the type of which will be the event you wish to…
Choletski
  • 7,074
  • 6
  • 43
  • 64
-2
votes
1 answer

I can not deal with Otto

Otto I use in the project. everything works but I want to improve. Now I have so I send messages from different places, such as BusProvider.getInstance().post(new…
1 2 3
12
13