Questions tagged as 'java'

1
answer

Convert a bitmap to string

Is there a way to convert a bitmap to string without converting it to base64 ? I have an app that sends images to a database, but I send them in base64 , and this takes up a lot of memory (based on what I've read) for t...
asked by 24.11.2016 / 20:07
2
answers

Is there any way to implement a listener for all the clicks that are given in a Java session?

As the question says, can you create a listener that detects every click that occurs in the open session of Java ?. My intention is to save it in a database in order to reproduce exactly what each user does in the session, type an audit t...
asked by 22.11.2016 / 15:27
2
answers

Json error converting JSONObject

I have tried in every possible way, I have a script that receives a json that comes from an url of a web api, but when I try to pass it by JSONObject it throws me error, this is the piece of the code where it gives error Response respon...
asked by 10.01.2017 / 21:05
1
answer

How to know with Apache POI and java if a column in excel is hidden?

Hi, I'm importing excel files with extension xls and xlsx but my doubt is how to detect if the column of a cell is visible or hidden, thank you in advance for your response.     
asked by 30.10.2016 / 04:41
2
answers

Create countdown N seconds while viewing an Activity on Android

I want to implement a countdown of N seconds, which starts when the Activity is displayed, the counter stops when the user decides to change the app and resumes when the focus is re-focused. Events must be detected in order to launch p...
asked by 09.10.2016 / 13:58
1
answer

Spinner and EditText

I have this code to load a spinner with data from a database: private class Getfrutas extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() { super.onPreExecute(); pDialog =...
asked by 02.11.2016 / 18:28
2
answers

Tomcat can not find the resources

Well I have an application with AngularJS that makes requests to the %% %% API as an example to learn how to use AngularJS, but the problem is that when I put the page with all the dependencies in a% Java% (this is what I do because I need to us...
asked by 18.09.2016 / 07:54
1
answer

Exception java.lang.NumberFormatException when trying a ".size" inside an EL

I'm having an Exception in the following code inside a jsp: <c:if test="${usuarios.size gt 10}"> users is a ArrayList that objects. users is not empty because in the same jsp, above, I run it correctly without problems....
asked by 09.11.2016 / 20:33
2
answers

Help with a Code Online Calendar

Well, it is supposed that my code should print in some months 31 days according to one of my conditions but it does not in fact print one day less in every month. If someone can help me and check my code would be very helpful, I know there ar...
asked by 08.11.2016 / 00:30
5
answers

Delete file in java

I'm doing an agenda in java for the uni :) and I do not get that in one of the options that I have of menu that is to erase the data.txt was deleted I have tried couple of things that have happened to me and seen many tutorials but I do not get...
asked by 16.12.2016 / 02:33