Questions tagged as 'java'

1
answer

How to put \ "in a String?

I'm trying to evaluate a PHP code using Java, so I need to replace all the " with \" in the code. The problem is that Java also has this escape character for " in a String. I was told to use \" , but the result was thi...
asked by 28.07.2017 / 17:58
1
answer

How do I know when the user has played outside EditText?

I need to identify when this happens. I have two EditTexts, when the user types the hour and minute and tap another EditText to name example, I need a warning to appear in case the time is incorrect. I have the function that checks the tim...
asked by 17.08.2017 / 13:58
1
answer

Jsoup does not seem to be working

Hi, I have this piece of code that gives a link and goes to the net with jsoup takes some information and then puts that information into an ArrayList used in a ListView. But the problem is that I do not know why the Array course is not full, th...
asked by 16.08.2017 / 22:32
2
answers

Write and print data in an ArrayList

I'm doing a college job and I need to store the name and age of 10 people in an array and then print the data of the person who is in position 7, but when I go to print, returns null. I do not know if you are not saving the data in the arrayList...
asked by 07.06.2017 / 17:30
1
answer

Back in Webview

I have an application with webview and I wish that when I clicked the back button of the cell phone it would go back to the previous page, I do not know how I do, does anyone help me? Below is my code. package brasil500.brasil500; import a...
asked by 08.06.2017 / 04:18
1
answer

Insert a submenu into a JMenu

When I click on the woman or man icon in JFrame , it is called a JPanel where I enter the data as weight and height. But when I click save, I can not call another JPanel to show the result of the calculation, since I'm alread...
asked by 07.06.2017 / 22:57
1
answer

Monitor in-app changes

I need a class that listens for some change in the application (or external change). I made a class that extended from class Service , however I realize that it enters the method onStartCommand only once. Am I doing something...
asked by 17.07.2017 / 04:55
1
answer

"Virtual Keyboard" - Java Android

Well, I'm in need of a little help. I was thinking about creating a kind of keyboard with just a few buttons for my Android application but I'm not getting what I want. Iintendedtocreatethiskeyboardandtypethecharactersinthewhitebarabove,whichis...
asked by 18.07.2017 / 21:28
1
answer

Problem editing records information that has uniqueness verification

I'm developing a web application using the Play Framework. In the play itself has the @Unique annotation that guarantees me that the same data can not be saved in the bank. I added this note to the username and email fields of my form, it works...
asked by 18.07.2017 / 16:22
1
answer

Is there a way to change a default program by java, cmd, or regedit?

I'm developing a system in java, but from it I should change the default program to open .pdf on the switch. In Windows 10 it opens by default on the Edge, however from the system it should change to Adobe. I've already tried cmd with the ass...
asked by 28.05.2017 / 16:24