Questions tagged as 'java'

1
answer

Doubt with Unit Tests Junit

I'm doing some unit tests with Junit and I have a doubt to do an exercise. When the test class is created, test cases are created for each method. Now, if you want to try only one method ... is it convenient to eliminate the rest of the tests...
asked by 17.01.2017 / 21:35
1
answer

Error showing a snackBar on onRequestPermissionsResult

How can a snackbar be used within onRequestPermissionsResult as it needs a view I assign it with findViewById(R.id.root_view) @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @N...
asked by 22.11.2016 / 13:01
1
answer

Deactivate slide right close app on Android Wear

I'm doing tests on Android Wear, some apps disable the "slide-right" gesture to close the app, making it only be possible to close with a long press or a physical button. How to disable the slide gesture of closing app on Android Wear?     
asked by 20.11.2016 / 19:56
1
answer

Select a directory with Java WindowBuilder [closed]

Well first of all say that I'm learning and I was thinking of doing a kind of program where you would select a windows directory to later rename all the files inside according to a predefined pattern. I do not pretend to be given the code, on...
asked by 21.11.2016 / 14:41
1
answer

how to hide icon in the Android laucher

I am developing an application and I have finished it. I just need to know how is the way to hide the launcher application. That is, the application that opens once and is hidden, so it does not show up in the Android app drawer. I found t...
asked by 02.10.2016 / 21:30
3
answers

Send variables to another Android Studio activity

I am programming an App in which I want that by pressing a button I send variables to an Activity but without opening the next activity, since it is like a sales cart type where the products are acomulated. I want the activity to open when th...
asked by 14.10.2016 / 17:50
1
answer

Order and ways to group elements in linked lists

Hello, can someone help me with this problem? I would like to fully understand the handling of the linked lists and I stayed with this example. Make an application that allows to generate different lists related to a specific community of neighb...
asked by 30.09.2016 / 03:16
1
answer

how to use arraylist [closed]

I have a question about the use of Arraylists, I have to do a project in which I have to store orders in an arraylist that gives me an excel file, I have the main class and the requested class, each order with its respective attributes, but my d...
asked by 07.10.2016 / 23:23
2
answers

I have two selectonemenu in Primefaces. How do I force one or both to be selected?

a query please, I have two selectOneMenu of primefaces in a view, what I need to do is that the user if I do not select either of them select at least one. I set required = true but this makes me have to select both selectOneMenu and the idea...
asked by 03.09.2016 / 01:51
2
answers

Interact with Java List

The listdescripcionS list brings me an array with string data. I do not know how to obtain that data in the for and that per cycle of the for assign the corresponding data. DynamicDTO dynamicDto = new DynamicDTO(); List<String...
asked by 01.09.2016 / 19:35