greenrobot-eventbus Questions
5
Solved
I'm using Greenrobot EventBus to pass events from one activity to another.
The flow is something like this:
Activity1 starts -> scan a barcode -> Activity2 starts -> accept or deny the response an...
Quandary asked 9/1, 2015 at 9:36
15
Solved
I'm creating an Android application using EventBus for posting asynchronous broadcasts to other classes, but I'm running into an error during execution.
MainActivity.java
import android.content.I...
Plutonian asked 8/3, 2016 at 17:30
4
Currently my project used EventBus to post event and I am trying to replace LiveData with EventBus. In theory, they work similarly. I migrated without no pain in the beginning. But it comes up a sc...
Nonconformance asked 7/7, 2018 at 16:20
5
Solved
I am using Greenrobot's EventBus in my app, and it works fine.
However, if I press the back button to close the app, then restart the app instantly I seem to receive the event twice. If I then do ...
Tum asked 23/1, 2015 at 23:35
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...
Soutache asked 5/3, 2015 at 9:51
2
Solved
I'm using ViewPager 2 from AndroidX with 4 instances of the same fragment. My question is pretty straight forward. When I'm navigating to some another fragment(using navigation drawer or even somet...
Mahaliamahan asked 13/11, 2019 at 20:23
2
I have a SearchFragment class which extends a class called BaseFragment in which onResume and onStop are overridden as below:
@Override
public void onResume() {
checkEventBusRegistration();
supe...
Attract asked 11/3, 2019 at 9:46
4
Solved
I´ve been using quite often EventBus from greenrobot
https://github.com/greenrobot/EventBus
But I´ve just realised that Guava has its own EventBus
com.google.common.eventbus.EventBus
Does some...
Kalie asked 8/2, 2016 at 11:14
2
Solved
EventBus Can I use this library for Activity to Service communication ?
I have tried this in my app as follows:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI...
Meeting asked 28/9, 2015 at 19:49
3
Solved
In my Android application I have used an Activity and Adapter for list view, my acquirement is need to communicate both adapter class and activity via event listener using EventBus, so that I have ...
Iscariot asked 5/5, 2015 at 17:29
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
1
I use firebase to send notification. When the app is in foreground, the notification is received by the class that extends FirebaseMessagingService. So in onMessageReceived, I do this:
EventBus.ge...
Cohby asked 8/10, 2016 at 13:30
1
I am stuck in one implementation. I am developing an Android application, into which I integrated 3rd party SDK (library) and calling its APIs. Function calling of SDK is actually Async calls (WebA...
Doubloon asked 23/11, 2017 at 5:51
3
Solved
My onEvent in a fragment as below, capturing the authentication of the activity, in my Kotlin function. However, I can't get that onEvent triggered.
@Subscribe
fun onEvent(event: AuthenticationEve...
Hankhanke asked 20/4, 2016 at 12:34
3
Solved
I need to communicate with a remote service, using (greenrobot) EventBus. Unfortunately, it does not seem to work with IPC. Looking at the code, I don't see a workaround either. Any help would be a...
Abound asked 20/4, 2014 at 22:44
2
Solved
I have a Fragment A which on a click of a button will start Fragment B that contains a RecyclerView. In Fragment B, on click of an item EventBus is started and that value needs to be passed to Frag...
Philia asked 3/2, 2017 at 7:51
4
Solved
I tried to use greenrobot pass data between activities and fragment,but I couldn't find a suitable tutorial that show how do it in detail.
Based on what I have read so far I wrote some thing like t...
Semitone asked 30/12, 2013 at 11:35
3
Solved
I have implemented a service, where I handle the state changes(connect, disconnect, onServiceDiscoverd, onCharacteristicChange etc) and receiving data from another device through gatt Server.
My q...
Thurmanthurmann asked 15/10, 2015 at 6:10
2
Solved
while using green Robot Eventbus I got an error
E/AndroidRuntime(2537): Caused by: de.greenrobot.event.EventBusException: Subscriber class com.example.MyActivity has no public methods called onE...
Herculie asked 24/7, 2014 at 6:49
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
1
Solved
When using the greenrobot EventBus library, all @Subscribe-annotated methods are displayed in light grey with a warning Method onMyEvent() is never used in Android Studio.
Is there a way to automa...
Laundes asked 25/6, 2016 at 5:2
1
Solved
I have an issue with EventBus from Greenrobot.
I was trying to post an event from a background service form my sync adapter and catch it in a fragment to update the UI.
The problem is that when I...
Unrighteous asked 28/4, 2016 at 15:5
2
Solved
I have an activity, its layout contains a FrameLayout. I use the framelayout as a fragment container. I replace the fragments in the FrameLayout using FragmentManager transactions.
In one of the ...
Decanal asked 6/10, 2014 at 12:2
1
Solved
Im working with RecyclerView, SyncAdapter and greenrobot eventbus
When my SyncAdapter finished syincing i post a message into the message bus:
EventBus.getDefault().post(new EventMessagesRefreshed...
Gab asked 14/3, 2016 at 19:47
4
Solved
I have an annotated Activity in a library, which is a subscriber to an EventBus event from the same library. It looks something like this, greatly simplified:
@EActivity(resName = "activity_foo")
...
Navarra asked 22/6, 2015 at 21:53
1 Next >
© 2022 - 2024 — McMap. All rights reserved.