Hello. I think my question is very simple, but I really did not find any solution after much research.
In Java, I have two concrete classes that extend an abstract class, as the example:
public class Animal {}
public class Dog extends Anima...
When I'm in xml , it only applies the property:
android:margin="15"
I want to apply this same property, but in the source code of java , how do I do this?
I'm developing an android application capable of generating and reading qr codes, the application already encodes and decodes strings, but now I need to do this with images.
I have tried some ways to transform the image into an array of bytes...
I made an application using IntelliJ using the database and everything is working very well, but as soon as I gave push to Heroku, a message appeared:
Application Error. An error occurred in the application and your page could not be ser...
For example ...
Calculating 8/6 will have a periodic tithe with a value equal to 1.333333 ... But I only want to show the user only 2 digits after the comma, that is, 1.33. How can I do this?
What is wrong with changing an object, which was passed to another method?, eg:
public void doSomething(User user){
edit(user);
//...
EntityManager.persist(user);
}
public void edit(User user){
//...
user.setName("new name...
I have a swing application in which I verify whether the word entered is right or wrong.
String palavra[] = new String[3];
palavra[0] = "bar";
palavra[1] = "ola";
palavra[2] = "alo";
String p = jTextField1.getText();
int cont = 0;
while (cont...
I have the following code on my system:
public int insert_dependente(Dependente dependente) {
ResultSet r;
int result = 0;
if (!(dependente == null)) {
try {
Connection conn = new Conexao().getConnection();...
I'm developing an application that once installed, the first time it is initialized it goes to the server to fetch all the images necessary for the user to use the application.
I chose the Picasso library to manipulate my images but I do no...