Questions tagged as 'java'

2
answers

Reflection vs. MapListString etc. etc

Random question: I have a JSON of a lot of kilobytes, already almost reaching the mega. I'm about to make it Java-istic and I'm in a list map: Map<List<Map<List, OMG>>>> data Or a full-fledged class: Depar...
asked by 25.04.2017 / 21:42
1
answer

Intercept and synchronize when changing Audio volume in Android?

I need to detect when there is a volume change in the Audio channel to synchronize the volume set to SeekBar By showing for example the dialog where you can adjust the volume I would like to detect the change made, in order to...
asked by 15.05.2017 / 19:06
2
answers

Why does my table show the values in this way?

It should be noted that what I want to do is that the table shows the data when the "Start" button is clicked. link package simulador; import java.net.URL; import java.util.ResourceBundle; import javafx.collections.FXCollections; import...
asked by 08.04.2017 / 23:00
1
answer

Tildes in API Google Maps android studio

I am using the Google Maps API in an application. I use Google's autocomplete and the streets come out with accents, but when I pass them to the url to get the distance, it does not return anything. This is the code: str= "Calle Doctor José...
asked by 09.04.2017 / 09:53
2
answers

how to make a cycle or loop that adds up an amount until it is positive

My doubt is like doing a cycle or loop that adds up a quantity hasta que sea positiva Example: -870+360 = -510 -510+360= -150 -150+360 = 210 and only shows the positive result ie 210 in the example     
asked by 08.04.2017 / 21:27
1
answer

How to fix: Fragment x is not currently in the FragmentManager in ANDROID

I'm with an application that works with fragments and when I'm in the fragment called ReservaOcupaciónFragment and I press the Home button of the phone (which is the one that leaves the app) it gives me an exception and therefore an error. Th...
asked by 31.03.2017 / 10:11
1
answer

How to forward Log to textView in non-UI threads for Android?

I want my app to print the log in a TextView. I have created a class called Log that mimics Utils.Log, but the problem occurs when calling from a thread other than UI. This is what the class looks like: public class Log { private stati...
asked by 29.03.2017 / 18:30
1
answer

There is some way to refresh a primeface component from a class annotated as websocket ServerEndpoint

I am developing an application where from my android app it triggers an event about my JSF web application, I have made it through the use of websockets. My problem is showing the data received by the websocket in my xhtml view when the metho...
asked by 28.03.2017 / 20:34
0
answers

s: submit does not work when migrating struts2 version 2.2.1.1 to 2.3.16.1

My problem is that an application made in struts2 2.2.1.1 in Jboss5 was migrated to a version of struts2 2.3.16.1 and with jboss6, when making the necessary configurations, I managed to make the application work almost in its entirety, my only o...
asked by 03.04.2017 / 23:55
2
answers

Confused when implementing testing

I want to implement continuous integration in my project but I have some doubts, suppose we have this: public boolean sumar(Persona person) { int result = 0; List<Personas> personas = null; try { jdbcServi...
asked by 05.05.2017 / 11:27