Questions tagged as 'java'

1
answer

How do I keep the screen attached in later versions of the kitkat API?

I'm making a APP that keeps the smartphone screen always on , even when APP is minimized. I'm using a class with extends Service to do this, in onCreate I put the code that keeps the screen always lit: PowerManager pm...
asked by 02.01.2017 / 20:49
1
answer

Mapping active users and disconnecting if they exceed 3 concurrent users in java

I would like to know how I could map the users that connect based on their unique id's and id session so that when there are more than 3 sessions for this id, the users who connected first are removed from the HashMap and so on. Example: Us...
asked by 06.01.2017 / 17:00
1
answer

How to generate an executable from a program made in Eclipse?

I made a program for the company where I work entirely on JOptionPane , just so that the program would only work by opening real system windows (I thought it would be easier to run officially after export than one I saw running through the...
asked by 19.05.2017 / 02:10
2
answers

Calculating working hours - Java

How to calculate the working hours worked, for example, in the company if you work 540 minutes a day, in the order system of services I need to compute the hours of service performed, in this scenario: The work order was opened on 04/19/2017...
asked by 19.04.2017 / 15:43
1
answer

Mongodb stopping inserting documents

I'm inserting some records, but after a while, it does not let me insert more. The following is the console error: java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.ca...
asked by 22.12.2016 / 15:05
1
answer

Error fetching blogger information via json

I'm trying to get blogger information via json and put it to appear in recyclerview . But I can not. I'm a beginner in programming, so I'm unsure if you'll have to sign some key so you can release content by json . E...
asked by 19.12.2016 / 19:23
1
answer

Opening an activity and returning it saving the status of main

After many searches I came across the following situation: I'm on my Main Activity and would like to open another Activity (passing parameters to Activity2 ), then use the button back on the toolbar and return to the main. Problems:Iamu...
asked by 21.01.2017 / 13:05
2
answers

How to save the user's login by using Java + AngularJS

I was doing a search on how to save the user session after it has been logged in the system, I found several examples with cookies, however I am using java + angularjs, and in the examples I found it used the method ofPost of jsp, where it recei...
asked by 23.01.2017 / 16:24
1
answer

Connect when clicking a button

I would like to know how to make a telephone call to the number when clicking on a button. As I did, it calls the Action_Diall activity with the number already written, so the person must click again to make the call. Is it possible that c...
asked by 21.01.2017 / 18:00
1
answer

I can not open the map in my position

After much research, I still have difficulties with java, I'm new and I'm trying to learn. Please excuse me if I can not ask a clear question, because I may not even know what I'm talking about, BOM, for example the part of maps that I can al...
asked by 24.01.2017 / 03:17