Questions tagged as 'java'

1
answer

Conditional to change activity

Hello, I have a problem, I want to create a conditional on an activity, inside a button, to open another activity in my app.    But how would that conditional be? My app has buttons in the main activity that leads to other activityies. On...
asked by 01.10.2015 / 22:24
1
answer

PrimeFaces - p: fileDownload PDF

Hello, I'm trying to download a PDF in my application but I can not. When I click the Download button instead of downloading, you are checking in form if the required fields have been filled in. If you fill in all the fields it works...
asked by 30.09.2015 / 20:09
1
answer

Replace a text with an image

I would like to know if it would be possible to replace a piece of text by an image that is made through URL? I want to replace image 1, image 2 and image 3 with images that are in a JSON array, what's in the JSON array is just the URL of t...
asked by 25.06.2015 / 10:56
1
answer

Determine the time and date of installing an application on Android

Is it possible to get the exact date and time that your user installed the application? On iOS7 +, you can get a receipt for when the application was downloaded using [NSBundle appStoreReceiptURL] .     
asked by 27.08.2015 / 19:24
3
answers

How to fill an array of another class in JAVA

I have created a method inside a class that looks for RS in the database, it works perfectly, but when I use it in another class, it does not do the desired thing, see the method: public void preencherArrayCidades(ArrayList acidades) throw...
asked by 31.08.2015 / 17:40
1
answer

Script Play and Pause in HTML5 video does not work

I found this script here on the site. it serves to give play and pause in Html 5 videos. But it seems to have an error, the click and pause effect only works if you have 1 video on the page, if you have 2 videos the effect only happens on the...
asked by 12.06.2015 / 03:31
1
answer

Error generating Report in Jasper Ireports

I followed a blog on the web that teaches you how to generate reports, but I have a situation that I can not solve. In case I have the following codes: Main.java public class Main { /** * @param args the command line arguments */ publ...
asked by 12.06.2015 / 14:09
1
answer

How to set a checkbox as a check?

Good morning, I have a layout with some checkbox, these are disabled so that the user can not mark them because for security reasons this check must occur via code, I have the following code: I need to set the checkbox as checked via java code a...
asked by 03.09.2015 / 01:56
1
answer

Monitor Directory with Java Web

I am working on a Java web application, using Apache Tomcat server and I need to monitor, or "listen" to a directory on the server. Asynchronous, and permanent. Because when a file is created in this directory, I need to examine and move it t...
asked by 29.06.2015 / 19:48
1
answer

How to Use Multiple Threads to Run a Faster Build on Maven

What does Maven offer in terms of parallelism to run builds ? If I run a build on a machine with more than one processor , how can I take advantage of more resources for processing? What is the expected performance improvement we ca...
asked by 27.06.2015 / 23:34