Skip to main content
0 votes
0 answers
253 views

I’m having an issue with a foreground service in my Android app. I’m encountering the following warning in the log: Handler (com.google.android.gms.internal.common.zzi) {c19f288} sending message to a ...
ronenfe's user avatar
  • 2,486
0 votes
0 answers
732 views

I have a Handler in my MainActivity that receives messages from a Service. class IncomingHandler extends Handler { @Override public void handleMessage(Message msg) { super....
slowcoder's user avatar
1 vote
1 answer
90 views

Message msg = Message.obtain(); msg.obj = "first string value"; msg.setTarget(mClientMessenger); msg.sendToTarget(); I would like msg.obj to hold two key/value pairs if possible. Ex: key1, &...
slowcoder's user avatar
3 votes
1 answer
73 views

The following code schedules a Runnable for immediate execution if this Runnable is already scheduled: public void onSomeEvent() { if (handler.hasCallbacks(runnable)) { handler....
A.G.'s user avatar
  • 2,277
0 votes
0 answers
34 views

I have the following handler called by a Thread .. private class setupHandler extends Handler { @Override public void handleMessage(Message msg) { ((TextView) findViewById(R.id....
user avatar
1 vote
1 answer
37 views

I'm new to android application development and I appreceiate some help. there is a recycler view in my activity which is initialized in a handler which notifies the activity about the bluetooth ...
shayan's user avatar
  • 11
0 votes
1 answer
45 views

In Android game (written in Java) I have an activity that's calling service and service calls a manager that checks certain values. Activity code looks something like this: public void performACheck() ...
guest86's user avatar
  • 2,996
5 votes
0 answers
1k views

I have many ANR on Goole Play Console. While, the stack trace does not show any useful information. There are some snapshots of the problem. Native method - android.os.MessageQueue.nativePollOnce ...
SnailBird's user avatar
  • 349
1 vote
1 answer
35 views

I have been running a activity with mode = singleInstance in my app. In this activity onStart() method i am initializing a handler like this Handler handler; @Override protected void onStart() { // ...
Rajeev Kumar's user avatar
  • 5,007
0 votes
1 answer
72 views

I have created a counter app that counts from 0 to infinity until the loop is stopped using a stop button. The app contains 2 buttons(start and stop) and 1 textview. I aim to display the values from 0 ...
Ninad Walanj's user avatar
0 votes
1 answer
137 views

I am developing an app to communicate with wifi and android and I am able to send but not able to receive any response because my response is not being called. So, the basic gist is that I am able to ...
HarmanPreet Singh's user avatar
-1 votes
1 answer
246 views

I am working on an Android app to communicate wirelessly with an Arduino over Bluetooth with an HC-05. I have been following the Transfer Bluetooth data documentation from Android. The following code ...
Zack Myers's user avatar
1 vote
1 answer
3k views

I use Handler(Looper.getMainLooper()).post(runnable) which places the query on the end of the thread queue instead of running it immediately. Is it ok to use this with kotlin, or is it better to use ...
testivanivan's user avatar
  • 1,554
1 vote
2 answers
1k views

I build an android app Countdown Timer using Kotlin. When I start the timer using Coroutines it throws an error as follows. Need your help that: How I can handle or implement the Countdown Timer's ...
Ahmer Iqbal's user avatar
0 votes
1 answer
751 views

I am running a handler that updates a textView element. The handler is started and stopped at the click of a button but once I start it, I cannot stop it. fun updateTextView(handler: Handler, run: ...
RishtarCode47's user avatar

15 30 50 per page
1
2 3 4 5
57