Questions tagged as 'java'

2
answers

Different guidelines on your smartphone and tablet

Hello, I'm developing an app and I need the screen to be in portrait for smartphones and portrait / landscape for tablets. The customer does not want to accept separate apps and does not want to leave the unlocked orientation on the smartphone....
asked by 27.02.2014 / 18:15
1
answer

FacebookOperationCanceledException error in Facebook game sample SDK Friend Smash

I followed the Facebook tutorial SDK to implement the game Friend Smash . In Activity Home you have a button to view the Scores. However, clicking on it displays a connection error on the screen:    Please check your network connection - Fa...
asked by 31.01.2014 / 21:31
2
answers

PrimaryKey, ForeignKey and Unique With JPA

I have the following situation: Entity Student (id and so on) Evaluation Entity (id and others) Entity NoteEvaluationAlumni (assessmentId, studentId) I want to transform the evaluation attributes, alunoId that have relations with enti...
asked by 13.08.2014 / 16:23
2
answers

App failing when an image is selected

I'm trying to get an image using an Intent, but when I select the image, my application closes immediately. This is my current code: private void capturarFoto() { String nameFoto = DateFormat.format("yyyy-MM-dd_hhmmss", new Date()).toStri...
asked by 04.02.2014 / 20:51
1
answer

dynamic path out of context in servlet

To get the dynamic path within the project is easy, just run the code: String path = this.getServletContext().getRealPath(""); Here it is returned: /home/pedro-pazello/development/servers/apache-tomcat-7.0.42/wtpwebapps/img_uploader/...
asked by 23.02.2014 / 16:45
1
answer

Detecting volume keystrokes on Android

I found a palliative solution that monitors the volume change of the system itself. When the volume decreases, for example from 10 to 9, the program resets the volume back to 10 (pretending there was no change in volume) and performs the desired...
asked by 24.04.2014 / 17:22
1
answer

Handling of HashMap between classes (Interpretation and Application)

It's my first question, sorry for the extension, I'm in the following exercise:    Create a Pizza class that has the methodIngredient () that   receives a String with the ingredient to be added. This class   you must also have the getPreco ()...
asked by 13.01.2017 / 03:34
1
answer

JSF is specification or framework?

In the JavaEE GitHub there is the repository javaserverfaces-spec that in its README.md says:   JavaServer Faces (JSF) is the JCP Standard technology for authoring component based user interfaces on the Java EE platform. This...
asked by 19.07.2017 / 17:20
1
answer

How to display data from a serialized file in Java?

I'm starting in Java and need to make a system that registers students and saves the data of those students in a serialized file. I can even create and save the data in the serialized file (I think rsrs) but I do not know how to display all t...
asked by 01.11.2017 / 21:35
0
answers

How to move the object to where I click the mouse? [closed]

My problem is this: I have an OpenGl program with Java. I made an animation for the drawing to move, increase and decrease in size, so far so good. When I was creating a function where when clicking the mouse, my drawing moves to where I c...
asked by 03.09.2017 / 23:44