Questions tagged [handlers]
225 questions
0
votes
2 answers
Do you use a query handler? If so, what tasks does it perform for you?
Several months ago my work deployed an in-house function that wraps the standard, php, mysql_query() function with additional options and abilities. A sample feature would be some handy debugging tools we can turn on/off.
I was wondering how…

Travis
- 848
- 1
- 7
- 10
0
votes
1 answer
Starting AsyncTasks from Handlers in Android
How does the handler message queue work? I know for a fact that the message queue is tied to the thread it is initialized in. If i have 2 tasks(each download from the web), and I initiate an async task from the handler,one for each, will the 2 tasks…

user1738744
- 13
- 1
0
votes
2 answers
IIS 6.1 Handlers for HTML, ASP, INC files
I have a legacy website in which .HTML, .ASP, and .INC files are being used. Problem is all pages have VBScript code not parsed by IIS and thus written on page as static text. I want to fix it. All .html pages include both .ASP and .INC for…

user704988
- 436
- 1
- 9
- 24
0
votes
1 answer
Execution order in Android
I have an Android code like:
protected void onPostExecute(String result){
parseJSON(result);
replaceResourceSegment();
dummyMethod();
}
My replaceresourceSegment(creates an intent) method takes some time to execute within which…

user1637909
- 173
- 1
- 3
- 14
0
votes
2 answers
Jquery binding event that has been disabled before
I would like to temporary disabling a click event on a JQuery element, bound with jstree and Backbone.View.delegateEvents().
Below is how I process to do
before disabling the event, I record the event in a local variable using
self.defaultClick =…

bengo
- 177
- 1
- 3
- 9
0
votes
2 answers
Sencha Touch 2 button click not working after deployment
I have a sencha touch 2 app which is working flawlessly without deployment. However, when I deploy to either testing, production or native, I have several buttons inside a navigation view with tap events which won't work anymore. No errors are…

seedg
- 21,692
- 10
- 42
- 59
0
votes
2 answers
When should we use Looper in Android?
Can someone please tell me when we should use Looper in Handlers? I have a codebase in which there are multiple threads and handlers. But Looper.prepare() and Looper.loop() is not called for all of them.
My doubt is do we need looper to continously…

Shamy
- 379
- 3
- 15
0
votes
2 answers
How to Serve static contents in Spring Container independent way?
How to Serve static contents in Spring Container independent way
I can't use
Eager to hear soon...

rohit
- 602
- 4
- 11
- 24
-1
votes
2 answers
In android to which thread's message queue a handler is bound?
I know a handler is bound to the thread's message queue in which it is created, but what if i create a handler in a service and posting a runnable declared in activity to which my service is bound.
For example:
In service:-
Handler handler=new…
-1
votes
1 answer
How to use same button for different tasks with respect to time?
I am slowly stepping into Java and trying out a program using Swing. I am trying out a program to use a single button to enter different letters. Each letter should be entered in the text box within 5 seconds.
I've tried using Handlers, but…

Kaushik
- 553
- 3
- 11
- 27
-1
votes
1 answer
Python logging from an url into a text file
I'm trying to logging text from this URL site: http://radio.nolife-radio.com:8000/played.html
into a text file. I've decided to try using the Python Logging module. So far I got nothing, I have been reading some here:…

user2977298
- 1
- 1
-1
votes
1 answer
how to reboot a python fileHandler
I have a file handler:
logger = logging.getLogger(__name__)
fh = logging.FileHandler('file_name.log',mode='w')
logger.addHandler(fh)
After some time I want to copy the file and clear the original file so that the logger will keep adding data to the…

orenma
- 1,163
- 2
- 10
- 19
-2
votes
1 answer
Listening and handling Java Events without UIs
I'm working on a Java project which requires we be on the lookout for changing events in the system. However, many of these events are on the back-end and can constantly change, and such they aren't looking for any button input.
Every example of…

Sammieo
- 155
- 1
- 7
-3
votes
1 answer
How to use multiple postDelayed handlers
Hi I am new to android delveloping and I am curently making a simple game that tests your reflection when a certain color changes, to test what I have learned so far but I cant solve a problem that came up.
Alright, first I will explain how the game…

Athanasios .B
- 27
- 1
- 7
-3
votes
1 answer
Unable to understand this concept of handlers in c++
I was going through a piece of code when I came across something new. However I tried to write my own code for better understanding.
#include
using namespace std;
class material
{
public:
material()
{
cout<<"material()…

Nikhil Singh
- 81
- 10