Questions tagged as 'java'

2
answers

Format Date yyyy-mm-ddTHH: mm: ssZ for dd / MM / yyyy HH: mm [duplicate]

I get in JSON a date field "created_at": "2013-01-08T20: 11: 48Z" and wanted to display on the screen in Brazil, but I can not use SimpleDateFormat to format and display in any way. / p>     
asked by 20.09.2017 / 21:01
1
answer

JAVA - Generate a random & scrambled word

I want to generate a random and scrambled word from a vector. At the moment it is already generating a random but not scrambled word. I created a method called scramble where the words will be shuffled but I do not know I am not able to call on...
asked by 22.09.2017 / 20:39
1
answer

What is the best place to make a property file available? [closed]

It has a Java project in Spring Boot that connects to the database. Consequently I have an application.yml properties file with the database connection configuration. The configuration of database is as below with the user and passwor...
asked by 29.06.2017 / 15:19
2
answers

RadioGroup in ListView does not maintain selection after scroll

I have a Listview with some information and within them have a RadioGroup, but when I roll all my screen checkbox is unchecked coz the listview is creating these checkbox again. I need to have my checkboxes tick when scrolling the page. Here...
asked by 30.06.2017 / 18:43
1
answer

Is it possible to change the function of the physical button even with the app in the background?

Would you like to change the function of a physical button, for example the volume, when clicking the button, down or up, is it possible to perform some function, other than changing the volume of the device? It is possible? If yes, is there an...
asked by 14.06.2017 / 23:13
2
answers

How do I make an operation take moments after I clicked a button?

I created a simple android app that starts a service just when I click on a button that I put myself, just click the button it starts to service immediately. What I want now is that clicking the service button takes some time to start. how ca...
asked by 27.06.2017 / 20:41
2
answers

How to check which result will appear most often in a chronological sum of an established sequence?

I have this sequence of numbers: 7, 14, 21, 28, 35, 42, 49 , being able to have more or less numbers. I need to add them all as follows: 7+7=14 14+7=21 21+7=28 28+7=35 35+7=42 42+7=49 49+7=56 That was 7, the others ar...
asked by 12.06.2017 / 21:19
1
answer

How to open an AlertDialog?

Well, I'm learning about Fragments now. From what I understand, fragments are components, something you want to repeat on several screens, without having to create multiple class or activity's. I'm trying to create a dialog, it will be using...
asked by 10.06.2017 / 00:58
1
answer

Is it possible HashMap with several values?

I need to populate a bank like this:    Milk 50 kcal 20 proteins 120 carbo etc hashmap , but I can only use a key for a value, I could do with multiple values, or some other way I can do this without using HashMap ? Map<Stri...
asked by 21.11.2017 / 16:44
1
answer

Error converting a data from one class to another

I'm using JSF in a project, I have a working "W-A" screen that displays the data from the "T-A" table on a grid. In this grid, each line has a button that points to a new "WB" screen where the "detailing" of the previous screen item in a grid wi...
asked by 21.11.2017 / 21:00