Questions tagged [handlers]
225 questions
5
votes
2 answers
How do I pass Runnable objects to a Handler?
I am learning via a book and it gives me this example:
Handler handler=new Handler() {
@Override
public void handleMessage(Message msg) {
bar.incrementProgressBy(5);
}
};
and
Thread background=new Thread(new Runnable() {…

Ryan
- 9,821
- 22
- 66
- 101
5
votes
1 answer
Azure / Image request 502 (Bad gateway) error - intermittent
I'm working on http://www.lovethesales.com - and have come up against an annoying issue.
As you'll probably be able to see for yourself on the homepage, sometimes, and intermittently, image requests will fail with a 502 Bad Gateway error. This seems…

Dave Bish
- 19,263
- 7
- 46
- 63
4
votes
2 answers
How can I make a Windows Explorer file preview screen in WPF?
I'm working on an application that will have attachments, and I would like to create a type of display like in windows Explorer, where you choose a "Details" view, and also show the preview pane.
I would like to be able to show a thumbnail view of…

Russ
- 12,312
- 20
- 59
- 78
4
votes
1 answer
Does Handler.sendMessageDelayed() work when phone goes to sleep?
I am developing an android application and I want to reduce the power consumption. The method I believe is to put the phone into sleep mode whenever the user activity stops for a certain threshold period. I have three questions regarding this.
If I…

crazyaboutliv
- 3,029
- 9
- 33
- 50
4
votes
2 answers
Do logging handlers use separate threads?
Python's logging handlers are great. Some of them, such as the SMTPHandler may take a long while to execute (contacting an SMTP server and all). Are they executed on a separate thread as to not block the main program?

Jonathan Livni
- 101,334
- 104
- 266
- 359
4
votes
4 answers
How to add event handlers to composite panels in GWT 1.6
This is probably a really simple thing, but I don't know how to implement the following.
package mods.client.resultSelector;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import…

Stephen Cagle
- 14,124
- 16
- 55
- 86
4
votes
1 answer
Allowing DLL download in IIS7
We are using IIS7, currently in classic mode. We have an ActiveX control on our site that needs a DLL to get downloaded to Client. To allow this to happen, we are removing the Execute permission for the DLLs and EXEs (in Handler Mappings).
The…

rkwindows
- 41
- 1
4
votes
2 answers
Reactive Spring Query Parameters
My Spring Reactive Web API should be able to filter based on query parameters but I'm struggling to get this right.
GET /v1/address?type=business
Should return all addresses of type 'business' in the system (just an example since I'm not posting…

Anthony Ikeda
- 534
- 2
- 6
- 11
4
votes
4 answers
In C#, how can you easily change the name of an event handler?
In VS2008, if I double click on the event handler VS creates a default event handler with a default name, e.g. combobox1_SelectedIndexChanged.
Say, for example, i now rename combobox1 to cbStatus. It still has the same event handler, so i now change…

Simon
- 9,197
- 13
- 72
- 115
4
votes
0 answers
Adding multiple php files to yaml for google app engine
Here are the contents of my yaml file:
application: myapp
version: 1
runtime: php
api_version: 1
handlers:
url: /static
static_dir: static
url: /suggest/.*
script: suggestions.php
url: /.*
script: index.php
The static pages work fine, and so…

user2977732
- 121
- 1
- 6
4
votes
2 answers
How to stop series of postDelayed handlers
I have a series of postDelayed handlers. I'm having trouble to set a mathode that stops the handlers when the user is tapping on the stop button at any time I he wants.
I'll appreciate any help someone able to provide.
Thanks
while…

RBZ
- 173
- 2
- 9
4
votes
3 answers
What's the difference between making a handler w/ ashx/axd and using something I made up myself in ASP.NET?
This is probably very simple but it's really confusing me. When I implement the IHttpHandler, I create a handler and then register it like so in the web.config:
IIS6 Portion:

danmine
- 11,325
- 17
- 55
- 75
4
votes
1 answer
Custom Http Handler in MVC 3 Application
I'm using an Http Handler to localize javascript files used in my application:
see: Localize text in JavaScript files in ASP.NET
I want to use the handler provided so I did the following:
1) Ignored routes using this code in Global.asax - I have…

Mortalus
- 10,574
- 11
- 67
- 117
4
votes
3 answers
VBA - Update Other Cells via User-Defined Function
I have a UDF(User-Defined Function) in VBA that needs to modify cell range on Excel.
Since a UDF cannot do this, I tried using Event calls.
When I raise a Custom Event and try to write to cells, I get #Value error. On the other hand, Application…

user1684104
- 41
- 1
- 1
- 2
4
votes
3 answers
How to generate @HandlerChain using wsimport
I'm generating Java from WSDL using wsimport (JAX-WS 2.1.3) and need to make it generate a @HandlerChain annotation. So I create a JAX-WS binding…

Mirvnillith
- 405
- 5
- 18