Questions tagged as 'java'

1
answer

How to validate if a String already exists in the JComboBox list? [duplicate]

package view; import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.DefaultComboBoxModel; import...
asked by 18.01.2017 / 04:51
1
answer

Pass data from api volley to another screen

I have an app that gets given via api using volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela1); ImageView m...
asked by 03.01.2017 / 19:32
1
answer

Error making GET of image url on Json Android

I have the following code: private class DownloadJsonAsyncTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() {...} @Override protected Void doInBackground(Void... voids) { p =...
asked by 25.09.2016 / 16:51
2
answers

Table only fills the column title

I wrote the method below: public void setListaCompra() { String sql = "SELECT * FROM\n" + "(\n" + " SELECT \n" + " produtos.id AS id, \n" + "...
asked by 26.09.2016 / 21:08
3
answers

Unable to start activity ComponentInfo

The app does not work when deploying. It "crashes" straight. Follow the code and the error: ActMain.java package desenvmoveluss.com.br.trabalho01; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.wi...
asked by 23.09.2016 / 23:15
1
answer

Call method inside a getter

Is it good practice to call any method inside a getter? Example: public final class ScannerDeHtm { private static final String DIR_CEF = DefineDiretorio.getDiretorio() + "CEF"; private static List<String> listaHtmFile; pr...
asked by 08.09.2016 / 08:50
1
answer

How to erase GridView image?

I'm developing an app that contains a gallery, where the user takes photos and the image is shown in GridView , but I do not know how to delete the selected image I have been able to do something like this: the user presses the image an...
asked by 05.09.2016 / 23:50
1
answer

Consume WebService C # on android

I have a Web Service created in C # where I access a certain method to authenticate a teacher, if the user data and password passed through parameters exist in the database the web service returns me the following data [CodProf], [name], [User],...
asked by 30.08.2016 / 04:04
1
answer

Make a mark on your Google Maps map

I wonder if there is any way to leave a mark on a certain part of the Google Maps map (android). I'm not saying in marker form, I'm wanting for example to leave an area next to my house with a spot of red on the map (or another color). Is it pos...
asked by 30.08.2016 / 23:20
1
answer

Identify the status of a program with java

Is there any way to identify the status of a program in Windows by searching the open process with java? I'm looking for a way to map a specific process from an executable to whether it is in focus on the screen or minimized, thus stopping th...
asked by 26.12.2016 / 19:47