Questions tagged as 'java'

1
answer

String JSON - Two decimal places

I'm reading a JSON object, and I get the data in TextView . However, the value of String Preco when the price has a zero in the second decimal place, it does not print in TextView . For example: 9.20 displays 9.2...
asked by 22.08.2017 / 21:24
1
answer

Set start time of a Chonometer with the text of a textView

Hello, I would like to know if you can set the initial value of a chonometer based on a textView. texView that would like to set the start of the highlighted blue chronometer. This textView receives data from a server, but it is not...
asked by 26.08.2017 / 02:38
1
answer

help with JSF code

In the system that is being developed the part of register has the following error when saving    /estado/editaestado.xhtml @ 13,134 value="# {ControlState.Name.Name}": Target Unreachable, identifier 'StatusControl' resolved to null The v...
asked by 26.08.2017 / 03:15
0
answers

API JMF or Something Similar Multiplatform [closed]

I have a project to do in java, that I will need the JMF to work with the media in general, the project is nothing more than a program to run the ads on TV's that stay in malls and etc. They recommended me to use JMF, I had never heard of it,...
asked by 25.08.2017 / 13:08
0
answers

JPA does not update children record [closed]

I have a problem with JPA which is as follows, I have the class ModeloEstoquePecas , where theoretically I need to delete everything first, which are the children records of class EstoquePecas , with the code below that I'll be putti...
asked by 24.08.2017 / 04:33
0
answers

I can not use the debug in a library

I need to debug a lib I just created, I've already done these steps:    * Here is what worked for me: (After having clicked debug at least once before) Open the debug view in eclipse (use the menu at the top:   Window - > Show View - >...
asked by 27.08.2017 / 15:20
1
answer

How do I get the intertitial announcement between one activity and another?

I think I did everything correctly, but the application jumps to the next activity without appearing anything. public class... private FirebaseAnalytics mFirebaseAnalytics; private AdView adView01; private AdRequest adRequest01; priva...
asked by 27.08.2017 / 01:08
1
answer

Multiple cast in java

I'm having a difficult time doing an exercise because I do not know how to solve this kind of casting: The class D is the superclass. The class C is the subclass. D d = (D) (C) new D(); I would be grateful if anyone cou...
asked by 27.08.2017 / 20:09
1
answer

SetText returning nullo

   When I open my activity the first time, all settexts are null, the second time it works normally, what's wrong?       Settext activity .. autor = (TextView) findViewById(R.id.tv1); editora = (TextView) findViewById(R.id.tv2);...
asked by 25.07.2017 / 21:35
1
answer

Widfly 9.0.2 is not initializing in debug mode

In the controller of my application, I have a method with a POST request, before it was a void method, with no return, but I changed it so that it would already return the generated records, after that change, the server of my application, the w...
asked by 25.07.2017 / 16:57