Questions tagged as 'java'

2
answers

Error doing subtraction with fields with no value (Android)

I have two fields of type double , which should be subtracted between values. But when I do not enter any value in the field, an error occurs and the application closes. How can I solve this problem? Follow the code: final EditText pr...
asked by 06.01.2016 / 20:20
1
answer

Is there a way to create a repository in GitHub with an already developed project?

My problem is that I have a project on GitHub and this project is being developed by me and two other people. However, all of a sudden, I really do not know what happened, my project that was all organized, stopped allowing you to commit, push a...
asked by 29.06.2015 / 21:43
1
answer

Problem moving from Controller to Model

I'm making a code, where it involves MVC. To move from View to Controller I'm not having problems, but when I go from Controller to Model I can not, being that the variable is imported, but without any value. View: package bancomvc;...
asked by 02.07.2015 / 04:39
1
answer

@RequiredRole with BaseCertLoginModule

My system authenticates the client (it's a web service) through BaseCertLoginModule , a JBoss class based on the JaaS specification. In fact my project extends this class, and this extension is called upon every request to decide whether t...
asked by 07.07.2015 / 16:28
1
answer

Navigate between screens

I'm developing a project in Android Studio , using drawer navigation . And in one of the%% I need to have a 2-screen navigation. How do I navigate between two screens, that is, when I slide on a screen, open another screen and hav...
asked by 07.07.2015 / 15:14
1
answer

Serial Communication with Precision Scale

I'm developing an application to measure the flow of solder that passes through the board on a production line, but I'm having a bit of a hard time connecting the precision balance with the PC via a serial port. I'm using JAVA language and api j...
asked by 03.07.2015 / 15:55
1
answer

Access object array inside a switch

Good evening, I'm having difficulty accessing and modifying an array of main class objects within a switch in the view class. The array is declared as such in the main: public class Controle { public static void main(String[] args) {...
asked by 22.11.2015 / 01:14
1
answer

.Jar does not execute

I have a problem at the time of running a file.jar that I did. When I click run nothing simply happens, no window opens, no error message or anything. In the Meta-INF folder you have the MANIFEST.MF containing only Manifest-Versio...
asked by 23.05.2015 / 19:59
1
answer

How could I implement Command (Design Pattern) in this work?

I'm doing a work in Java where we should implement 3 Design Patterns from the software we created earlier. Home The software I created is basically a CRUD for movies. In a tab, you add (insert) and change (update) the records and in the other ta...
asked by 12.06.2015 / 01:48
4
answers

Getting data with JSON on Android

Hello, how do I get the data from a web-service I have? I have the following code in JAVA Android to save the information: wd.setUrl("http://www.cordeiro-it.com.br/SOUPROGRESSO/Ctrl/ServerUsuario.php"); wd.setMethod("new-usu...
asked by 11.06.2015 / 19:56