Skip to main content

All Questions

Tagged with
254 questions with no upvoted or accepted answers
8 votes
0 answers
870 views

App crashing when using Retrofit callback in debug mode

My app is crashing when I try to debug it, but runs fine in run mode. I looked at the stack trace and I know this is happening due to the callback code. Any ideas why the app is crashing only in ...
cutcut's user avatar
  • 83
5 votes
1 answer
6k views

Android: How do you pass a callback to an activity?

I am creating a library. It creates an activity, starts it, and finishes it after a button is pressed. After the button is pressed, I'd like to execute some client code through an interface. That is,...
Danedo's user avatar
  • 2,243
4 votes
0 answers
32 views

Register a callback to handle JLI_Launch failing with "Could not find or load main class"

I am trying to make AppBundler more observable and have had great success except for one thing. JLI_Launch does not return to the caller so I can't tell if it fails to load the main class (or any ...
Jeff Holt's user avatar
  • 3,200
4 votes
0 answers
183 views

Why does Java expose Error and Java SE API callback methods accept Throwable instead of Exception?

Facts The Java SE API says about the Error type that it "indicates serious problems that a reasonable application should not try to catch"; also "errors are abnormal conditions that ...
Valentin Kovalenko's user avatar
4 votes
0 answers
1k views

Sunmi V1s device - Java callback doesn't work when the printer is done printing

I'm using Sunmi V1s device and want to show a Dialog once the printer finished printing the whole receipt. I now can get a message once the query is done processing, but I cannot get the message the ...
linkas's user avatar
  • 175
4 votes
1 answer
2k views

Get results from JMeter remote test in Java

I´m trying to run JMeter tests directly from my Java code. The load should be produced via a JMeter server. In the code, I use a ClientJMeterEngine instance that connects to the JMeter daemon running ...
Patze's user avatar
  • 307
4 votes
2 answers
1k views

How Do Applications handle Asynchronous Responses - via Callback

I have been doing Java for a few years but I have not had much experience with Asynchronous programming. I am working on an application that makes SOAP web service calls to some Synchronous web ...
terax1024's user avatar
3 votes
1 answer
1k views

ListenableFuture callback triggered by future cancel

I am using ListenableFuture and register callbacks like this: Futures.addCallback( myFuture, new FutureCallback<MyClass>() { public void onSuccess(MyClass myClass) { //...
Z.SP's user avatar
  • 339
3 votes
2 answers
178 views

Java callback hell with uncertain number of steps

I need to get messages from a service in a given interval. I make a request to my service, where I specify FROM date and TO date. But the service starts from the FROM date, and goes up to 2000 ...
ezpzlmnsqz1337's user avatar
3 votes
0 answers
993 views

Java - Wait for component to be shown

UPDATE #3: After madProgrammer's suggestions, maybe the timed solution is the best. But no answer has been given to this strange behaviour. I understand the fact that components are not shown ...
Francesco Rizzi's user avatar
3 votes
0 answers
109 views

Android "Sticky" interface callbacks

This question is more an architectural question more than an actual implementation. In very basic terms I have network calls made to web services in and android app. When the network call is complete,...
Mitch Dart's user avatar
  • 1,349
3 votes
0 answers
657 views

Android asynchronous event handling (callbacks and eventbus)

I am currently developing an Android application with Bluetooth Low Energy capabilities. Android BLE (Bluetooth Low Energy) method calls are mostly (if not all) asynchronous in nature. I have ...
Maurice's user avatar
  • 416
3 votes
0 answers
326 views

How to do a callback operation on Sqlite using java?

I am working on sqlite in Java. Presently I am using Xerial JDBC Driver. I am able to establish connection with an existing DB and perform basic DB operations on it. But now I have a requirement ...
Abhinav's user avatar
  • 1,730
3 votes
0 answers
2k views

Tomcat Comets application returns .jsp page instead of weather data

I have implemented the Comets tutorial at http://www.ibm.com/developerworks/web/library/wa-cometjava/#N100CC It seems like I am getting data returned from the server using the Comets technique - i.e. ...
Ankur's user avatar
  • 50.8k
2 votes
0 answers
72 views

Is the WindowProcedure always called in the JavaFX Application Thread?

In a JavaFX app, if I use the JNA to implement a custom window procedure, will the callback always be on the JavaFX Application Thread? public class MyWindowProc implements WinUser.WindowProc ... ...
vbyzjnlehi's user avatar

15 30 50 per page
1
2 3 4 5
17