Questions tagged as 'java'

0
answers

Adding multiple records to many-to-many relationship - SpringBoot

Good afternoon. I have a problem and I've tried a lot of code before coming, but without success. Here's the problem: I have a class that has several attributes and methods: public class Um private tipo campo1; private tipo campo2; . . @Json...
asked by 21.06.2018 / 20:46
0
answers

How to ask the user to access the location?

How do I ask the user to allow access to the device's location? I'm programming in java and using the Android Studio IDE, and I'm extending to FragmentsActivity public class MapsActivity extends FragmentActivity implements OnMapReadyCal...
asked by 22.06.2018 / 19:22
0
answers

Lazy Loading ORMLite + Android

I have an app that communicates with an online system through a Rest API, the query that the app does for the API in the case in question should follow the pattern "ClassRecoveryStatus"? "KeyCodeField"="'Key'" ... And the loading of the entit...
asked by 03.07.2018 / 19:44
0
answers

Maps does not run in API 28

I am making an app that will work with Google Maps and is working perfectly, from API 25 to API 27. But when testing on API 28 the app simply closes. At Grandle I had to change the implementation 'com.android.support:appcompat-v7:28.0.0...
asked by 20.06.2018 / 17:27
0
answers

Android studio, Switch Method hangs the app

I'm having a problem with the Android studio switch, I just can not seem to manipulate it with its data because it simply hangs the app in the VM. MAIN.Java A question, are these changes in MAIN.JAVA or in Fragment?     
asked by 20.06.2018 / 21:19
2
answers

Get mysql table id in application

I'm developing a Java application where I need to retrieve the id of a Course table (idCourse, CourseName, CourseCode). I'm trying to do the following: public class Teste4 extends javax.swing.JFrame { Connection con = new ConnectionFa...
asked by 21.06.2018 / 00:35
1
answer

Transform an array of string (which are links) into an imageView in android with json

I have a json on a server with links of images and need to convert to imageView, I could only open on the android screen as a string showing the image link. My json MycodethatreceivesjsonStringRequestrequest=newStringRequest(url,newResponse....
asked by 21.06.2018 / 01:58
0
answers

How to change an image using the commandButton in Java JSF?

0 vote against favorite Good afternoon, I'm developing a naval battle game in JAVA using Primefaces to make the front end. I would like a help to mount a commandButton that when clicked, trigger a function that will return if the house selected...
asked by 17.06.2018 / 16:55
1
answer

Double.valueOf (String) .doubleValue () [duplicate]

As I could not convert a String to Double because it is decimal, I used Double.valueOf (String) .doubleValue (). But when converting a String to Double with "." the numbers above 3 boxes (1,000) are not stored in variable Double even with the...
asked by 10.06.2018 / 20:05
0
answers

Field filled with ID of a JComboBox of a JTable

I need help to include a value in the ID column when in the column on the NAME side select a particular item (Drug). I can make the items appear with the combo but when I select the drug I do not know how to put the ID of it in that ID column...
asked by 26.06.2018 / 02:35