Questions tagged as 'java'

2
answers

How to delete directory from internal storage on Android?

I have two functions to save files in the internal memory of my application, one for data in Json and another for Images. With each new application update, I will need to remove these directories so that the new files are saved instead of the...
asked by 18.05.2018 / 06:26
0
answers

Socket automatically disconnects

Hello, I was making a connection from a Socket to a ServerSocket, but after the first message the Socket receives it it automatically disconnects. Socket, read messages: private void startRunnable() { new Thread(new Runnable() {...
asked by 25.05.2018 / 00:25
0
answers

How to keep the font in HTML coming from a p: textEditor / IReport?

My application is properly generating the IReport report. But when generating the PDF and displaying it in JasperViewer the text is in a very small font, different from the one written by <p:textEditor/> . I tried to preconfigu...
asked by 17.05.2018 / 02:10
1
answer

EntityManagerFactory closed session

About this topic: Change in database and update of entity Resolved, but now gives another EntityManagerFactory is closed error. I created this class: package br.com.netsoft.dao; import javax.persistence.EntityManager; import javax.pe...
asked by 17.05.2018 / 05:15
1
answer

CommonsMail JavaMail - Failed to send email

I'm trying to send email using google's smtp with the CommonsMail lib in a web application, but it's always causing a flaw. I made a separate app and tested several settings, which I've been seeing on a number of other topics. Using port 465...
asked by 22.05.2018 / 23:42
0
answers

Android - Download Manager simply does not download

I created an application to extract and download videos from pages with HTML players. Well, the problem is that some downloads start to download but they just stop, well to try to find out the problem I plugged my cell phone into the computer...
asked by 22.05.2018 / 19:35
2
answers

What is a Thread? How does it work?

I was confused about what a thread is and what it represents. I found the following definition for it:    Thread is a small program that works as a subsystem, being   a way for a process to self-divide into two or more tasks. It's th...
asked by 28.10.2015 / 23:20
0
answers

Array of objects [duplicate]

I have a facul work and the teacher asked to divide groups and each one look for a subject chosen by him related to java and: What is an array of objects in java?     
asked by 16.05.2018 / 02:18
0
answers

Method return the same hashcode in C # and java

I have the method in C #: private static string GetMD5(string strPlain) { UnicodeEncoding UE = new UnicodeEncoding(); byte[] HashValue, MessageBytes = UE.GetBytes(strPlain); MD5 md5 = new MD5CryptoServiceProv...
asked by 15.05.2018 / 20:56
1
answer

Error when using JPlay framework for games!

Hello, I'm trying to program in java with the JPlay framework, and I'm finding an error that was non-existent on another pc I had. The error step is in this video lesson: link game class code: package jogo; import jplay.GameImage; import...
asked by 16.05.2018 / 02:53