Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

I want to build a social application using Laravel 11, React and Reverb for websoket, I got this problem when connect to multiple channel for each conversation, each channel require auth, and it very ...
3 votes
1 answer
69 views

The following code schedules a Runnable for immediate execution if this Runnable is already scheduled: public void onSomeEvent() { if (handler.hasCallbacks(runnable)) { handler....
-1 votes
2 answers
101 views

I have a specific code in my app that checks the connection etc. I want this code to be executed every 60 seconds(1 Minute). I don't quite understand the postDelayed() function. Can someone help me ...
0 votes
2 answers
1k views

Handler(Looper.getMainLooper()).postDelayed( { println("inside the looper") val firmwareVersion = managerService.getDeviceFirmwareVersion(); ...
0 votes
1 answer
80 views

I want to add random delay between 16 to 30 seconds in sending sms in sendSMS Function, I want to know on how to integrate delay for this function and where is the right position to add the seconds ...
0 votes
1 answer
49 views

I'm new in stackoverflow. I created a simple bluetooth app to controll a relay board. The Relay is "on" for 1s after clicking the a button. It works so far but if I click the button during ...
0 votes
0 answers
72 views

Is it possible to make a runnable postDelayed method changes the value of its variable when running? Because it only loops the initial longitude and latitude that it gets even though the location is ...
0 votes
0 answers
651 views

I want to move to another Activity after 5 seconds. (Step4Activity -> WeightActivity) I found this code, and it worked. new Handler().postDelayed(new Runnable() { @Override ...
1 vote
2 answers
813 views

This is for a splash screen. I've followed the tutorial but it's still not working. It keeps on getting an error. This is my code: package id.ac.umn.finalproject; import androidx.appcompat.app....
0 votes
1 answer
52 views

I need to use postDelayed() method inside onFinish() method of the CountDownTimer. I use the following code: ... public void onFinish() { Handler handler = new Handler(); handler.postDelayed(new ...
0 votes
4 answers
2k views

I am using following code for using a button. I works.(sendBtn is a button in a fragment) sendText = view.findViewById(R.id.send_text); View sendBtn = view.findViewById(R.id.send_btn); ...
G.ONE's user avatar
  • 537
0 votes
0 answers
49 views

I want to show PDF in a webView . I have a the URL of that PDF . It works at sometimes and shows the PDF but in sometimes doesn't show the PDF when I click on different URL in my RecyclerView . I ...
0 votes
1 answer
151 views

I am creating like a Whack a Molee type of game, and I am creating imageviews at random positions on the screen. The thing is, I am adding a postdelayed to a var I am creating every two seconds ( the ...
0 votes
0 answers
486 views

I'm trying to execute some code defined in a function after that function has executed a return instruction. I'm trying to do it this way: Handler handler=new Handler(); handler.postDelayed(new ...
0 votes
1 answer
992 views

I want to get data from the Heart Rate sensor every x seconds. I tried it with postDelayed() but that only works for reading the data every x seconds, but the sensor is running in that time and the ...

15 30 50 per page
1
2 3 4 5
...
12

AltStyle によって変換されたページ (->オリジナル) /