Questions tagged as 'java'

1
answer

MongoDB - Apply filter on the result of a $ group and $ project

I have a problem getting a result with a query in the MongoDB shell. Apparently, the structure of the information stored is not as complex, and neither should the query, but I have not. Also, I have to be careful with the processing time, since...
asked by 02.06.2018 / 02:44
2
answers

problem when inserting in BD with a blob data type

I am developing an application that manages a private medicine clinic. I have to save the data of the clients in a BD including their photograph, made with a webCam, I have managed to visualize the webCam, I have managed to make the photo, but t...
asked by 05.06.2018 / 13:08
1
answer

Persistent problem in Android studio: Can not resolve symbol 'ActivityCompat' 'Crashlytics' 'Fabric'

I have a serious problem which does not let me continue with my project, it turns out that last week I compile my latest version (1.1.6) for the moments of my project, I launched it and everything goes well with the devices, fabric and firebase...
asked by 01.06.2018 / 19:34
1
answer

How can I traverse a queue in java?

I'm trying to go through a Queue list in java. I have created a method to traverse the tail that is called Walk ().  I'm using eclipse so try this: list Wait.peek (). Get (i), but I do not recognize the get (i) method. import java.util.Collect...
asked by 03.06.2018 / 19:36
2
answers

Send values from a Fragment to an Adapter

I want to send variables from a Fragment to an Adapter ... Here are the values of the Fragment that I want to send and some other code. The values I want to send are Country, City, Company Type, CompanyUser and Logo. País = getArguments()....
asked by 06.06.2018 / 15:36
1
answer

Connect thymeleaf with a list of objects

I am currently using these technologies SPRING MVC HIBERNATE JPA THYMELEAF JACKSON JSON create a form where you sent a recipe-type object @GeneratedValue(strategy = GenerationType.AUTO) @Id private int id; private String nom...
asked by 06.06.2018 / 07:52
1
answer

Show Activity within another Activity

   How can an Activity be implemented within another Activity? My idea is to show a main Activity in which I have several texts and information, and within this Main Activity I want to add a box where a second Activity is shown, in which a G...
asked by 22.06.2018 / 00:56
1
answer

Check if employee already exists

I am inserting data into a table in an Oracle sqldeveloper database and I want to check some things like (that the employee number already exists or that it is not entered correctly, that the boss does not exist, that the salary> 0, and that the...
asked by 22.06.2018 / 09:47
1
answer

Separate a string in Java

I want to separate this string for a spinner. Here I receive my JSON I go through it to only get what I want. JSONObject jsonObject= new JSONObject(responseStrBuilder.toString()); JSONArray jsonArray = jsonObject.getJSONArray("payment_metho...
asked by 24.07.2018 / 19:36
1
answer

Android - Update ArrayAdapter from a new array

I need to know how to update a ListView from an own ArrayAdapter by means of the array that I sent it, I explain: I have this JSON: [{"id":"1","user":"117270122","mensaje":"Mensaje de prueba","condicion_visto":"0"},{"id":"2","user":"117270122...
asked by 16.05.2018 / 00:19