Skip to main content

All Questions

Tagged with
1 vote
1 answer
104 views

Is there a listener in the Stanford CoreNLP pipeline checking for abort?

I am working on an XQuery implementation of the Stanford CoreNLP pipeline for eXist-db. eXist-db is an open source XML database. I have written a function module for eXist that is written in Java ...
Loren Cahlander's user avatar
0 votes
3 answers
83 views

The simple one to make callback in android - AndroidX

I am trying to figure out how callback work and the simplest way to do it, but I can't manage to solve it This is my Listener Interface public interface OnTestingCBListener { void onSuccessCB(...
Antony Sunggaki's user avatar
0 votes
1 answer
266 views

How make chain of callbacks in android

I want to implement this scenario: I have an ACTIVITY, one CLASS, and a SERVICE. What I want to do is making a chain of callbacks like this => ACTIVITY 《《 Class 《《 SERVICE (Hint: create a callback ...
Hadi Ghadiri's user avatar
0 votes
3 answers
532 views

Listen to (register to) a specific method of interface without implement all the methods, Java

Interfaces are a good way to simulate callbacks. However, the class that implements an interface must override all the methods of this interface. Now, I have an interface interface MyInterface { ...
MMasmoudi's user avatar
  • 538
0 votes
1 answer
19 views

Handling multiple listeners with a kind of identification

I develop a Android application for a Ble-Device and implement a Interface to listen on write, read and subscribe operations. I add all my listener instances to a List and trigger the Interface ...
developKinberg's user avatar
1 vote
1 answer
24 views

Same code for all callback implementations in Java

I have a callback interface: public interface OnServerDoneListener { void onDone(int code, byte[] body); void onFailure(); } It's used as a listener for HTTP requests in many places across ...
Andrey Rankov's user avatar
11 votes
1 answer
1k views

Fragment interaction callbacks: onAttach() vs setter

I'm trying to implement a nice, reusable Fragment and I'm having a hard time choosing a pattern of setting interaction callbacks. I am of course familiar with the docs, but I have some doubts ...
SpaceBison's user avatar
  • 2,839
0 votes
1 answer
516 views

Callback listener not working properly

I'm using the Realm library for my app. I do an asynchronous request to get object like this : public static void getMissions(final List<StatutMission> listStatus, final SListener<List&...
Flofloaud1034's user avatar
3 votes
1 answer
5k views

Does REDIS support event listeners?

My USE Case: I want to have a key in redis and want a callback to some method (Using Jedis Java client) when the keys value changes or exceeds some threshold. Is it possible?
Sainath S.R's user avatar
  • 3,204
0 votes
1 answer
113 views

Callback methods do not work for Hibernate beans

I do everything according to http://docs.jboss.org/hibernate/orm/4.0/hem/en-US/html/listeners.html, but neither in-bean methods nor external ones are ever executed. What might be the cause? @Entity @...
no id's user avatar
  • 1,672
1 vote
2 answers
2k views

Using a callback vs using Handler in Android?

Im learning from Android's BluetoothChat sample app and noticed that they are using a Handler to send updates to the UI as seen here . I was wondering why they wouldn't prefer to use a callback/...
Daniel Kobe's user avatar
  • 9,705
4 votes
4 answers
28k views

activity to activity callback listener

Let's suppose 2 activities Activity1 and Activity2. I need to call method methodAct1() (inside Activity1) from methodAct2 (inside Activity2). I think it should work using callback listener - I don't ...
Vasile Doe's user avatar
  • 1,744
9 votes
3 answers
18k views

How to create a proper Volley Listener for cross class Volley method calling

I aim to call Volley from another class in, a very succinct, modular way ie: VolleyListener newListener = new VolleyListener(); VolleySingleton.getsInstance()....
Sauron's user avatar
  • 6,549
3 votes
1 answer
422 views

Android callback listener - send value from pojo in SDK to an application's activity

I have a java class buried deep in an SDK that performs an action and returns a boolean. It has no knowledge of the application's main activity, but I need the main activity to receive that boolean ...
Patricia's user avatar
  • 5,069
-2 votes
3 answers
1k views

Callbacks and listeners ; MouseListener

I'm trying to write a project with listeners, I've got my buttons working where they change the color, now i need my mouseLIsteners to print text of what the mouse is doing. for example:"Mouse has ...
Thomas Norman's user avatar

15 30 50 per page