I have a service that needs to notify the main activity. I use LocalBroadcastManager, and it works fine, but LocalBroadcastManager has been deprecated ...
I have a service that needs to notify the main activity. I use LocalBroadcastManager, and it works fine, but LocalBroadcastManager has been deprecated ...
I'm new to SO and fairly new to coding, so please accept my apologies in advance if I break rules or expectations here. I have an unusual setup invol ...
I am calling a function in service to send data to activity, i am using Local broadcast manager for this, the below is the code in service the belo ...
I got a use case where I had to use Broadcast receivers in my project and came to know that the class "LocalBroadcastManager" has been deprecated. In ...
Context: No receiver is declared in the manifest since I am not declaring a new receiver. I am a bit confused about why the receiver in MainActivity ...
I'm working on this project in Android in which an aspect requires a CountdownTimer with a foreground service. A few other answers on Stack Overflow m ...
I have an android activity that has BroadcastReceiver as below. The problem is I am receiving message from network and depending on message type I ...
I just migrated to androidx via the option Refactor -> Move to Androidx option in Android Studio. By default the build.gradle file was using: I ...
We are trying implement LocalBroadcastManager in our Android app but facing "Cannot resolve" error. This is the object we need - https://developer.a ...
I have a Service which is in a different process defined in Manifest and a MapboxMap Activity, and I just wanted to know how I can communicate between ...
I have 3 menu buttons (add_image,save_meme and share_meme) on my action bar, which are declared in Mainactivity.java. The buttons are responsible for ...
I'm building an app with 2 fragments. 1st Fragment: ImageView and 2 TextViews 2nd Fragment: 2 EditTexts and 3 Buttons In the 2nd Fragment, I ...
I'm having trouble sending objects in intents. I read that gsoup is one method to accomplish this task but I haven't been able to make it work. Here' ...
The scenario is like this: I have an activity and a service. There are a few things that need to be sent between both: the activity can query the ...
I have an android application I am working on in which I am making API request with Volley, after making the API call, I get a bunch of JSON objects r ...
I want to send simple sata from an activity to another. Both are active at the time and I have registered LocalBroadcastManager. the sending part work ...
I got this error while importing an eclipse project to Android studio. It shows a suggestion Add library Gradle: com.android.support:support-core-util ...
I have a, what I thought was a, simple task. I have a list of achievements in a recyclerView in my MainActivity. Clicking on one of the achievements l ...
I have a Service that frequently updates the Main Activity UI by passing values via a LocalBroadCastManager. The following method is triggered within ...
Our normal way of writing unit tests is using mocks via Mockito. However, LocalBroadcastManager, for some unexplicable reason, is final - thus prevent ...