Questions tagged as 'java'

1
answer

Error in Registration Android String can not be converted to JSONObject

I have a record in Android but when I hit the "Register Incidence" button, it generates the following error in the logcat: This is my RegisterIncidences: btnRegistrar.setOnClickListener(new View.OnClickListener() { @Ov...
asked by 22.11.2018 / 18:01
2
answers

Structure of a servlet

I'm new to this and I do not quite understand the structure of a Servlet, it just seems to consist of 3 methods doGet, doPost and processRequest, no? But at what moment does each one run?     
asked by 24.05.2016 / 14:45
1
answer

FirebaseListAdapter, TextView inside populateView?

Why do not I see anything in the emulation with this code? I do not know how and where the TextView must be created to which the text 's' is set. I do not understand how it works, thank you. public class Cursos extends AppCompatActivity {...
asked by 24.05.2016 / 20:23
1
answer

How to print from java code on a Brother-ql720nw printer

I need help printing on a brother-ql720 label printer from java code using escp mode I have installed the drivers that come with the printer and also the p-touch software Since the p-touch software recognizes the paper size and prints with...
asked by 14.07.2016 / 15:43
1
answer

Obtain path of a selected image from the file browser

I need to obtain the path where the image is saved when the user selects the image, I have this code: // Llamada al explorador de archivos public void elegirFoto(View vista){ Intent intent = new Intent(Intent.ACTION_GET_CONTENT, MediaStore...
asked by 22.09.2018 / 16:12
3
answers

Duda print String with Java time format

I have a program that receives a time in this format from a GPS: HHmmss.ss and I save it in a String, I wanted to know some way to print the String with this format: HH: mm: ss. I just need to print the time on the screen     
asked by 26.09.2018 / 11:10
1
answer

How to identify the values that Log.e brings on Android with Firebase

I have this structure in Firebase And I'm calling the last three data with the name "dose" with this structure my.child("usuario").orderByKey().limitToLast(3).addValueEventListener(new ValueEventListener() { @Override...
asked by 05.10.2018 / 00:29
1
answer

Export table from BD to .txt file in Android Studio

I need to export a database to a .txt file delimited by commas, I have researched but I can not find the way, I need the files to be shown in this way:    Data, Data, Data   Data, Data, Data How can I do it?     
asked by 14.10.2018 / 21:46
1
answer

The program in java does not print the result

I try to make a program that converts a decimal number to binary, octal and hexadecimal I made a menu and everything, the binary conversion works but when entering the number in the other conversions, it just does not print anything.  here the p...
asked by 01.11.2018 / 19:15
1
answer

error showing a jasperreport pdf java.io.FileNotFoundException

Hello everyone, I have the following problem: At the moment of wanting to show my jasperreport the "PDF", I get the following error java.io.FileNotFoundException when I place the path String path = "prueba.jasper"; or whe...
asked by 04.06.2018 / 17:56