Questions tagged as 'java'

1
answer

Run concurrent threads in java with parameters, run method

I have a service today that I need to calculate its execution time with multiple accesses, for this I am trying to execute concurrent threads and that loguem this time, the problem is that for the run method of the Thread class I can not pass pa...
asked by 14.03.2018 / 20:21
1
answer

Explanation about tags of Android components

I'm developing an app for android. I found some tutorials to help me in the development but I found some tags that did not understand their due explanations and when should I use each of them. They are: Thread SurfaceView Surface holder Ho...
asked by 16.06.2016 / 14:38
2
answers

Error importing csv files from FTP into the application

I'm creating an application and I'm trying to import some csv files that are on ftp into the android. Then I have hers as follows: InSpinnerwilllistallthefilespresentinthe"import" folder that is inside my FTP. But when this listing is...
asked by 15.06.2016 / 14:38
2
answers

NullPointer Exception Help

Before the data goes to the bank I have a nullpointer that I've debugged and I can not find where the problem is. Below my classes: package br.com.pokemax.controle; import java.io.Serializable; import java.util.logging.Logger; import...
asked by 04.06.2016 / 17:58
2
answers

How to create a list with some attributes in java?

I'm having trouble creating a list where I can enter different values. I use the following codes: public class avaliacaoMensal { private String questao; private char potencial; private int resultado; } public avaliacaoMensal to...
asked by 06.06.2017 / 20:59
1
answer

Convert string to static?

Is it possible to convert string to static? String prefix = getConfig().getString("prefix"); String sufix = getConfig().getString("sufix");    Can not make a static reference to the non-static prefix field Is there a way to conv...
asked by 01.06.2017 / 19:04
2
answers

What's wrong with this method?

I'm making a method of adding Users, and only one thing is not working, the function that:    "You will not be allowed to add friends with the same mobile number." Then you need to check the users already added, to see if they do not have...
asked by 07.06.2017 / 15:44
1
answer

How to send JSon to another activity?

How to send JSon to another activity? public class SolicitaDados extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... urls){ return Conexao.postDados(urls[0], parametros);...
asked by 28.01.2017 / 21:08
2
answers

How to update the recyclerView after updating data via dialog

My application works something like this. Within a fragment I have a RecyclerView composed of cardviews, fed by a database. On each card, there is an edit button (imageView) that opens a dialog (alertDialog) with a form. editing. Everythin...
asked by 24.01.2017 / 03:24
2
answers

Compare Background with Drawable

I have a problem comparing Background of a ImageButton with a drawable IB6 is my ImageButton and wanted to see if it has drawable def , when it arrives at this if the application for and gives e...
asked by 30.01.2017 / 15:11