Questions tagged as 'java'

3
answers

How to read file passing part of the name in Java

Example.: The name of my file would be 001nome.txt , this file will have a variable action on the name depending on the entity, ie an hour it can be 001nome.txt at another time it can be 999nome.txt . Doubt.: How...
asked by 28.02.2014 / 20:11
2
answers

How to save / retrieve image in memory on android?

Hello, I have a Bytes Array which is a image from it, how can I save it in external memory and if there is no save in the internal memory of android? and then how can I be recovering that image? I need to save in a place that these im...
asked by 16.12.2014 / 12:54
1
answer

What is the difference between serialized and non-serialized objects?

I know that an object is serialized when its class implements the java.io.Serializable interface, but I would like to know what the object means to be serialized and what difference there is to another not serialized.     
asked by 11.10.2014 / 10:41
1
answer

Creating a java interpreter for android?

I'm developing an android application where you can write a java code and run it ... something like visualg . so I did something different than most of the tutorials on compilers and pseudocodes would say ... where would that have to be genera...
asked by 07.04.2015 / 04:14
1
answer

Use the Bundle and / or just putExtra?

To pass data between activity , I have 2 forms: 1. Use Bundle : public void teste(View v) { Intent i = new Intent(this,Teste.class); Bundle bd = new Bundle(); bd.putString("site","google.com");...
asked by 09.11.2017 / 17:11
2
answers

How to detect that the headset has been plugged in?

I've been noticing that every time I "plug in" the headset into my smarphone, a Deezer notification (music stream application) appears. ) already telling you to click and to open the application. According to the documentation that talks abo...
asked by 27.09.2017 / 16:14
1
answer

Do I need to close the connection on each query?

Currently I have a web application that queries multiple databases in the same controller. For each bank I make a connection at server startup and keep them in a static class where their DAOs have used it and close it in the context destroy of...
asked by 13.07.2017 / 14:50
3
answers

Format date in Java web with Primefaces

Speak, I need to format a date in Java. I'm using Java web, Primefaces, MVC, TDD, JSF, Hibernate. I am an intern and I am doing a project manager project for my company. My date entry view looks like this: <h:outputText value="Data de...
asked by 23.09.2016 / 19:31
1
answer

How do I know what previous activity the current activity was called?

I have several Activities, which can call a special Activity. I would like to know how to identify which activity you called. It would be something like this: IneedthisbecauseIhaveauserregistrationactivity,whichcanbecalledthroughsevera...
asked by 23.05.2018 / 10:15
1
answer

Control module version with Maven

I have a Java multi-module project with Maven. I currently control the version of each module manually by editing the <version> element of the pom.xml of each module that undergoes updates. I believe this is not the correct /...
asked by 14.01.2014 / 17:28