Questions tagged as 'java'

2
answers

How to adapt an Android app to various screen sizes?

For example ... I want the Android app to be displayed equally on both 5 "and 3" screens ... And how do I apply a "scroll" layout, how to add a scroll to the layout on Android?     
asked by 09.03.2015 / 17:34
1
answer

Why does NetBeans suggest changing an array addition?

I'm starting my studies in programming with Java. I'm creating a class for object in NetBeans that alerts the following message:    Array concatenated with String Why? My code: import java.util.Arrays; public class PessoaGenerica {...
asked by 25.04.2016 / 00:52
1
answer

JDateChooser and JComboBox picking up blank values

I'm having some problems trying to capture the value of some elements of my code. 1st - Problem with JDateChoose component The code runs smoothly however the captured value goes blank, follows code String dtreceb = ((JTextField) this....
asked by 20.04.2016 / 03:27
1
answer

How to check if a table exists using jdbc java

How to check if a table exists in jdbc using Sqlite3?     
asked by 25.04.2016 / 02:25
1
answer

Write only one row in BufferedWriter

Well, I have a text file with a few lines, for you to understand better, here is what I have in this file: 0 Zombie+160+-50 Zombie+160+290 Robot+-50+120 Spider+370+120 doors 1+BossRoom1 3+Loja1 Basically, I wa...
asked by 22.01.2015 / 22:24
2
answers

Setting a time to close an image when opened

I have a question about how to set a time for image that was opened close. Would it be a tie? I'm using ImageView : <ImageView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/im...
asked by 27.01.2015 / 16:55
1
answer

Get method values to get results in the ANDROID calculator

Friends, now the doubt is as follows, I need the "+" operation to be present to make the sum, but it always exits 1 + 2 and the two never make the sum. Anyone have any idea what it might be? import android.app.Activity; import android.os.Bundl...
asked by 08.09.2015 / 04:31
1
answer

Java Barcode

How to do a barcode validation in Java? A Java application that simulates a barcode reader. The program prompts the user to enter the 13-digit code of a particular product and then returns the information indicating that the code is valid or not...
asked by 15.09.2015 / 00:35
1
answer

Error writing file on Android

I'm trying to create a file on Android, but a letter is appearing that I do not want to be written. Note the code: File file = new File(Environment.getExternalStorageDirectory().toString(), "Arquivo.sth"); try { file.createNewFile(); } catch (...
asked by 13.07.2015 / 01:34
1
answer

Problem displaying date on Android

When displaying a date that was entered into the database, of type DateTime , the app shows the current date: Iwouldalsoliketoconvertthisdatetodd/mm/yyyytofitaportraitlayout.Partofthecodethatdealswiththislist:publicList<Despesa>ge...
asked by 20.01.2015 / 14:12