Questions tagged as 'java'

1
answer

How to call a function inside another in Java for Android?

Every letter that the user types in EditText , invokes the function TextWatcher which leads to Text-to-speech . So if it writes 'c', the app returns a speech saying 'c'. if it then enters 'a', returns 'a'. The problem is tha...
asked by 28.03.2017 / 22:00
0
answers

How to retrieve only the parameter of a url through a managed bean

I wanted to know how to retrieve only the parameter from this url in a managed bean http://localhost:8180/blabla/teste.xhtml?codigoEmpresa=754 Follow my managed bean: package br.com.sipag.web.sipagpremios.mb; import java.io.Serializable...
asked by 23.02.2017 / 23:06
2
answers

How to calculate a value while the user types in an Android application?

Hello everyone, I'm developing an application where the user must enter a quantity and the unit value and the application calculates the total to pay. But if you erase all the value that is in the fields the program aborts. How can I fix this?...
asked by 25.02.2017 / 03:13
1
answer

How to apply "If" & "Else" functions to BigInteger?

I have this code in Long working normally: public static void main(String args[]){ List<Long> lista = new ArrayList(); for(long a = 1; a <= 100; a++){ if(a%2==0) {} else if (a%3==0){} else...
asked by 24.02.2017 / 21:58
1
answer

Do Multiply 2 Fields in JTable

I'm trying to get a multiplication of 2 fields in JTable but I can not do SpecificallytheFieldQuantityandUnitValuetomultiplyandgivetheTotalValueJTableScreenpackageTelas;importClasses.Cliente;importClasses.Material;importClasses.Orcamento;imp...
asked by 23.02.2017 / 23:49
1
answer

Problem passing information on my login

I'm getting this exception when I log in ERROR [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-10) An internal error occurred while trying to authenticate the user.: org.springframework.se...
asked by 30.03.2017 / 14:55
1
answer

How to reconcile good Object Oriented practices and ORM frameworks for getters and setters?

In many of the systems I have worked with or have had contact with, the class that represents a model is usually a POJO, which mapped its attributes for columns (for relational databases) or attributes (for some NoSQL databases). Thus, in many o...
asked by 31.03.2017 / 13:54
1
answer

Error debugging in TDS 11.2 (Eclipse) in Linux Mint 18

I configured the debug with the path of smartclient.exe (use via wine), the build works, only the debug that gives a permission error in java. Iniciando TOTVS Application org.eclipse.core.runtime.CoreException: Exception occurred executing com...
asked by 12.03.2017 / 16:04
1
answer

How to call Finish () from a separate class?

I have an application where when the user clicks "Back" on the MainActivity it displays a AlertDialog on the onBackPressed() method asking if you really want to quit the application. But I created a new Gerenciar clas...
asked by 23.02.2017 / 14:17
0
answers

How to crop two images in the same Activity?

I'm using this repository to crop images. But I am not able to cut two images in the same activity, being that one cut is oval and the other rectangular. Whenever I click on both, the cut is the same. Here is the code for the oval cut: pr...
asked by 18.03.2017 / 15:52