Questions tagged as 'java'

0
answers

How to pass data from a fragment to an Activity to send them in an email on Android?

You see, I have a MainActivity that a function that sends an email with the data of a fragment. In this my Fragment are inputs in which data is loaded. Now, in that same fragment there is a button "New data" that opens the same fragment b...
asked by 17.02.2018 / 19:41
0
answers

How can I avoid that when I call a fragment, it is not recreated, but it shows the data I had from the beginning?

I am doing a project in Android Studio, I require that, in a navigation drawer, when selecting a fragment that had already been loaded and emptied information in it (it is the first fragment that appears, in the onCreate event), the task to recr...
asked by 05.03.2018 / 01:13
1
answer

how could you reuse this code to insert data into two different tables

I have two tables with the same fields and I'm using two equal methods for each insert in each table the only thing that changes is the name of the table. I would like to reuse the code just by changing the name of the table through a combobox....
asked by 20.02.2018 / 16:03
0
answers

how can I pass a class to the mvc model

I have this class but I can not find the way to pass it to the mvc model, to work with the Setter and Getter and finally send the data to another class where a jLabel will receive it. public class Clientes { Connection conectando = null; P...
asked by 20.02.2018 / 15:23
2
answers

Save a file in the database without creating a virtual directory

good morning, I'm having a problem, I'm doing a project in Java and I upload it to the app engine, but app engine has a problem and it does not allow creating virtual directories, so what I want to do to solve this problem, is to save my file...
asked by 16.02.2018 / 13:21
1
answer

I have a simple jsp I'm using java and I want to run a report by irreport from a link but I get an error

This is the servlet code, here is the report route: package Controlador; import Modelo.Conexion; import java.io.FileInputStream; import java.io.IOException; import java.io.OutputStream; import java.sql.SQLException; import java.util.HashMap;...
asked by 16.02.2018 / 12:49
0
answers

How to change the color of the options menu

I'm going to change the question again, because the title of the post I think says that what I want to change is the color of the menu , and not the color of the button. I will not extend much to see if this is better understood My questi...
asked by 16.02.2018 / 12:25
1
answer

Java Android Generate a document from a template .docx

I am trying to generate a document thanks to the plugin: xdocreport-1.0.4.jar Let's say that it has worked for me from the PC, following a template to generate another one with the data entered in the form but from the android phone I can...
asked by 13.02.2018 / 19:08
1
answer

Spring Tools Suite STS closes out of nowhere?

I have been for a few days that the STS is closed only when I am working on it and sometimes when starting the program does not even open. When the STS is closed, it creates a file in its installation path which says the problem but can not u...
asked by 13.02.2018 / 22:33
0
answers

Call data by id

I am just starting in programming in android studio, and I was working with spinners, where I have already created a DAO / DTO with the values I want to show. I have 3 spinners that show the sensor, the proof of this and its status. The idea is...
asked by 15.02.2018 / 18:44