Questions tagged as 'java'

0
answers

Problem when creating NavigationView

In an activity, I try to create a side menu. For this I am using the NavigationView object following this tutorial: User Interface on Android: Navigation Drawer (NavigationView) The problem I have is that I do not recognize this object,...
asked by 28.11.2017 / 10:33
1
answer

HQL Queries (Hibernate)

I am starting to use the mapping tool Hibernate and in order to know and become familiar with this technology I am making some inquiries through HQL but I am not entirely sure if the approach I'm giving you is correct. Below I will presen...
asked by 26.11.2017 / 20:50
1
answer

Problem when creating directory on SDCard. Android Studio

I have the following code, in which I want to create a directory (E4) in the SD external memory, however, when I run it I can not create it, and I also want it to be in / sdcard / documents /, but I put it on in ** / storage / emulated / 0 / **...
asked by 25.11.2017 / 22:11
2
answers

Change TextField color when writing

I am in a task for the university and they ask me to change the background color of a textfield when the user enters a character , I know that to change the background is occupied by the .SetBackgroud (color red), but I have only been able to...
asked by 25.11.2017 / 20:19
0
answers

Prevent hibernate from inserting the name of the class in mongoDB

I have a person entity with two simple fields: class Customer { @Id String id String firstName String lastName } by doing a simple save on that entity, using spring mongo repository: repository.save(new Customer(firstName:...
asked by 13.09.2017 / 08:01
1
answer

Do I need an intent to open Google Voice Search?

I need an intent to open Google voice search by a button, for that I need to place an Intent in MainActivity . Intent open3 = getPackageManager().getLaunchIntentForPackage("com.google.android.googlequicksearchbox.VoiceSearchActivity");...
asked by 11.09.2017 / 22:41
0
answers

How can I insert and extract variables with "session" with java :?

this is the scenario: On the one hand I have a .java where I want to put a variable in session doing this: String [] matriz = new String[5]; matriz[0] = "Hola"; matriz[1] = "que"; matriz[2] = "tal"; matriz[3] = "estas"; request.getSess...
asked by 27.09.2017 / 09:44
1
answer

How to check the content of readValue

You'll see I'm messing around with the NBA API and I have this json in particular link Then I have a Parser class public class Parser { private Map<String, Object> otherProperties = new HashMap<String, Object>();...
asked by 26.09.2017 / 15:15
1
answer

Animation on Samsungs

Hi guys and girls (of course) I have this animation in my project <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" > <rotate android:...
asked by 03.10.2017 / 22:13
0
answers

What is the best way to use setter methods with objects? [closed]

I have a question, which is the most efficient way or that follows some standard of initializing objects for setter methods, in my work there are positions divided between memory usage and execution time, what do you think? 1st form: Obje...
asked by 17.09.2017 / 22:17