All Questions
9 questions
3
votes
3
answers
2k
views
Memory Leak in MessageQueue in android?
I am having a memory leak in my MainActivity.java which was detected by LeakCanary. This is my Leak Trace.
┬───
│ GC Root: Input or output parameters in native code
│
├─ android.os.MessageQueue ...
0
votes
1
answer
253
views
What is the purpose of MessageQueue class and how do we use it to handle the Firebase push notification?
I am developing the Restaurant app for a food delivery platfrom. Basically when a customer placed an order, the Restaurant app will get a firebase notification and there will be a popup for 10 seconds ...
4
votes
1
answer
702
views
Android Handler Not Receiving Message Using HandlerThread
Ia m Using HandlerThread and Handler in my below code, Actually I try to update the data from runnable to Handler callback.
In every loop the sendMessage() function Called but I didn't received ...
0
votes
0
answers
111
views
unable to set drawable on ImageView in HandlerThread subclass
i am writing a flickr client as part of a project from a book that i am reading. in it i create a subclass of HandlerThread that downloads images from flickr and then sets them in an ImageView. i set ...
1
vote
2
answers
4k
views
How to implement a persistent queue in Android
I would like to implement a persistent queue in Android. Essentially a queue where data is stored until another thread takes it and sends it somewhere. The order in which data is stored or consumed is ...
0
votes
1
answer
172
views
Android : Will this be a good pattern for communication between threads in Activity and Fragments?
i am using HandlerThread class for thread communications in an Android App.
The main UI thread(Activity) has it own handler,with its handleMessage(Message) overriden to accept message and process it.
...
14
votes
4
answers
5k
views
Non-blocking queue of HTTP POST requests with persistence
Before we develop our custom solution, I'm looking for some kind of library, which provides:
Non-blocking queue of HTTP requests
with these attributes:
Persisting requests to avoid it's loss in case ...
1
vote
3
answers
1k
views
Single Producer Single Consumer now I Need Multiple Consumers
I have a Situation where I wrote a simple Producer Consumer model for reading in chunks of data from Bluetooth then every 10k bytes I write that to file. I used a standard P-C Model using a Vector ...
1
vote
2
answers
2k
views
How to pause a Thread's Message Queue in Android?
I am queuing up a bunch of runnables into a thread via a Handler.post(). I would like the ability to send a note to that thread that it should pause.
By pause I mean, finish the runnable or message ...