Questions tagged as 'java'

2
answers

How to know the orientation of the screen?

What code that perceives and returns the screen orientation? If the cell phone is standing or lying down?     
asked by 28.06.2016 / 09:36
0
answers

How to change values of HTML input with EditText using WebView?

Is there any way to change a form field by taking the value of EditText, using a WebView client? I have an application in which you access my website and there are 2 fields, one user and one password, when I type in the "EditText" user and passw...
asked by 15.11.2015 / 05:23
1
answer

Incompatibility of blob types and byte sqlite

I am making an application to save the image in sqlite. However it is accusing the following error in my class dao: incompatible types byte cannnot be converted to byte. My Classes: import java.io.Serializable; public class Produto implem...
asked by 11.01.2016 / 21:47
3
answers

How to instantiate an Activity with EditText fields without being automatically selected?

Developing an Android application, I came across a problem, I have an Activity where there are EditText fields in the xml, and when I instantiate it, the first EditText field is selected and the keyboard appears to fill, and I do not I wanted th...
asked by 30.10.2015 / 18:15
4
answers

How to check if a string is contained in another?

I have several strings in a ArrayList . I would like to know how to return a string from this list that contains another string that was passed. For example, if I pass a String "Bean" , I want to return the string "AtendenteBea...
asked by 15.02.2014 / 21:37
2
answers

Change class vector size

I have to use the public static String vetor[] = new String [15]; vector in the class ... however this class is used in a servlet. And the size I need the vector is what the user chooses ... how can I pass the parameter that defines the v...
asked by 02.10.2014 / 15:46
1
answer

Eclipse for Java EE does not start

My Eclipse for Java EE does not start, and gives a first-line error:    java was started but not returned exit = 13 64-bit operating system (x64).     
asked by 29.09.2014 / 15:26
2
answers

Click the button does nothing

I put a button on activity_main and made a second screen. The idea was to click the button to load that other screen. And in class MainActivity.java I put it on clicking the button, it would load the screen. However, clicking the b...
asked by 28.05.2014 / 15:58
2
answers

How to resolve the java.net.UnknownHostException error

I'm trying to install sqldeveloper and datamodeler in my Fedora 20 and I'm having problem with following error: java.net.UnknownHostException: localdomain: localdomain: Name or service not known at java.net.InetAddress.getLocalHost...
asked by 06.03.2014 / 01:28
2
answers

Passing parameters from one Activity to another

I need to pass the name of a selected product on ListView to be displayed on a EditText . I am currently on the screen that the user informs the customer and then opens the screen of new request, on this screen I have a button to...
asked by 09.04.2014 / 20:14