Questions tagged as 'java'

0
answers

Slow reading a very large string

I am losing a lot of performace when doing a decodeBase64 , when I have a very large file type 30MB, it takes a lot to read the data received from the front. Is there any way to improve the reading of this file that is in fileBase64?...
asked by 10.10.2018 / 17:41
0
answers

Android Webview custom error message

Hello everyone, I added a custom error message from Webview to my app, however the default Android message still appears for a few seconds, how do I resolve it? Here is the code: webview.setWebViewClient(new WebViewClient() {...
asked by 10.10.2018 / 21:40
1
answer

Insert record into a table and use newly generated ID to insert record into related table

I have insert where I save a record, and I need to use the result of the value saved in another insert . Empresa emp = new Empresa(); emp.setId(1); emp.setNome("Nome da empresa"); repository1.saveAndFlush(emp); RelacaoEmp relEmp...
asked by 17.10.2018 / 16:32
0
answers

2012 Model of a Java Mobile

It's pretty old, but whoever wants to suggest new Java Mobile Programming scripts !! import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class ThiagoCardoso extends MIDlet { Display meuDisplay = Display.getDisplay(th...
asked by 19.10.2018 / 19:04
1
answer

Problem returning a vector list

I'm doing a Java project and I'm having a hard time messing with vectors. In the project I have the following methods to create:    1 - Create a method that takes the course name as the parameter and returns all the students enrolled in this...
asked by 09.10.2018 / 16:49
0
answers

Convert String with multiple values to arraylist and add programmatically to a spinner?

((I'm using the browser to enter the site, because app here is in trouble) I'm pulling multiple results from a video formats on YouTube. However, when I step into the spinner, it only passes one result, which is usually the first, which is us...
asked by 09.10.2018 / 07:35
0
answers

KeyHolder.getKey () may return null - Spring Boot JdbcTemplate

I'm starting Spring and I'm doing a method that will insert a new row into a database table and this method will return the% new% that was generated by the Bank, I'm doing this: public Profissional insert(Profissional profissional) { Prepa...
asked by 06.10.2018 / 00:16
1
answer

Read file.xml in an FTP

I have a problem reading an .xml file in an FTP, and the following message appears: "ftp: \ cipher.ca \ FileName \ Maxdata_Venda_209016.XML (The syntax of the file name, directory name, or volume label is incorrect) ", in the code this commentin...
asked by 06.10.2018 / 02:11
1
answer

BD / list error

I was following a tutorial on how to do CRUD, but an error appeared for me (in the tutorial it is ok) How do I resolve this? lista = (ListView) findViewById(R.id.lista_Madicamentos); registerForContextMenu(lista); lista.setOnI...
asked by 13.10.2018 / 22:45
0
answers

TCP android client does not work

Good afternoon, I'm creating an application in android studio to send a string from smartphone to pc. My application has the following code: public void Send_Command(View v) { testClass(); Toast.makeText(getApplicationContext(), "C...
asked by 03.10.2018 / 20:05