In the Observer pattern, an event handler is the function or method called on an observer listening for an event dispatched by the subject. Also known as an event listener.
Questions tagged [handler]
3718 questions
1
vote
0 answers
Google apps script - handler created via my class method
Pretty please help. I tried to write my own class , for example:
function doGet() {
var app = UiApp.createApplication();
var o = new myClass.o('Name');
var i = o.show()
app.add(i);
return app;
}
//Class
function o(name){
this.app =…

user3345869
- 11
- 2
1
vote
1 answer
a handler is passed as parameter to the thread constructor and when tried to send message through the handler i am getting null pointer exception
handler is passed as this:
public void getUserYouTubeFeed() {
new Thread(new GetYouTubeUserVideosTask(responseHandler, username, i)).start();
}
Handler responseHandler = new Handler() {
public void handleMessage(Message msg) {
…

Padma P
- 9
- 2
1
vote
0 answers
Retrieve Cookies in ashx Handler That Were Set in aspx page Fails for IE
I set a cookie for users before I redirect them to any company partner pages.
A web beacon is fired by our partners on their respective domains later at some point after the hand-off (for us to track referrals) to a handler which reads that cookie.…

kona
- 139
- 8
1
vote
1 answer
Call_user_func_array() expects parameter 1 to be a valid callback (Event handler system)
I'm trying to make a system which handles supplied data and calls the functions assigned to them in an array with addHandler().
Code:
class Test {
public $arrHandlers = array();
public function addHandler($action, $function) {
…

James
- 261
- 2
- 5
- 16
1
vote
2 answers
Unable to upload multiple files in .ashx handler
System.InvalidCastException: Unable to cast object of type
'System.String' to type 'System.Web.HttpPostedFile'
This is the error that shows up in my response header.
I can't send multiple files through ajax to the handler.
jQuery
var…

Severiano
- 1,083
- 3
- 25
- 54
1
vote
1 answer
Best way to avoid Out Of Memory errors - Android
Currently, my group mates and I are making an android application that will help kids learn basic knowledge. It will have a teaching module and a quiz module for kids. I am having a problem with so much Out Of Memory errors popping up from the…

anonymous
- 11
- 4
1
vote
2 answers
Best way to add jQuery form handling to existing php form handling script?
This is my first post so please be patient ;)
My question:
I use my own MVC. The model (i.e. to upload images) contains a php function that validates if a file exists, matches the allowed extentions and the allowed size and then uploads the file.…

user3300748
- 11
- 3
1
vote
3 answers
Handler sendEmptyMessage() cannot resolve
I have problem with handler. After create i want to send message to handler, but method sendEmptyMessage() cannot resolve. Handler must to update custom list adapter.
There is my code:
private Handler mHandler;
mHandler = new Handler() {
…

BoBaH6eToH
- 58
- 1
- 8
1
vote
2 answers
android Java - Textview not appending text when activity restarts
I've been trying to create a function in my app that consist in a bluetooth RFID scanner, it's paired to my device and I have it working and all.
I can receive the text and log it in the console, when I compile the activity, everything goes fine,…

marcoFSN
- 125
- 9
1
vote
1 answer
How to make the working Thread communicate with the UI Thread when the working thread is launched from a service
I am using Wifi Direct that detects and connects to a device in a background service.
When a WifiDirect connection is established, i launch a serverThread and a Client Thread respectively for the Server (GO) and for the Client.
My problem now, is…

user3141990
- 129
- 1
- 7
1
vote
1 answer
Android - Button Timer (Handler - RemoveCallback won't stop PostDelayed)
I'm currently working on an android app for adjusting seats. One feature I want to include is to make the seat move faster, when the button to move the seat in one direction is touched for a certain time.
For that purpose, I want to start like…

user3256557
- 63
- 1
- 6
1
vote
1 answer
Start new activity in window manager
I want to start a new activity, the activity plays a live stream from a source. When I start the activity, it plays the content on the whole screen. I want to display the contents of the stream in a small screen which is a surfaceview. I am doing…

faizanjehangir
- 2,771
- 6
- 45
- 83
1
vote
0 answers
Handle HTML attribute value change i JavaScript
i want handle in JavaScript HTML attribute value change. HTML attribute can be changed from another script, and i need handle it. Is better way then check value every second?

Misaz
- 3,694
- 2
- 26
- 42
1
vote
1 answer
Handling several URLs scripts in Google App Engine
i started teaching myself the basics of web development with python in Google App Engine and webapp2 web frame.
Basically, i would like to create a homepage where i'll post all the links to different projects. each link will direct to a new url…

tamiros
- 339
- 1
- 4
- 10
1
vote
0 answers
Android UI flickers on posting to handler
In one of my adapters for a custom ListView, I have a piece of code to insert a Bitmap into an ImageView that looks something like this :
Handler handler = new Handler(context.getMainLooper());
handler.post(new Runnable()
{
@Override
public…

Vishnu
- 2,024
- 3
- 28
- 34