Questions tagged as 'java'

3
answers

Disable a button

Good afternoon, I was trying and I do not understand how to do it. I want the user to choose an option, by pressing a button, depending on the button you have chosen, a specific action takes place. The problem is that if you press the A button,...
asked by 10.09.2016 / 16:11
3
answers

Request individual permission on Android 6+ M

I am implementing the permission check at runtime for Android 6+/ Android M more or less understand the process: checkSelfPermission To check the permission: shouldShowRequestPermissionRationale To know if the user a...
asked by 12.09.2016 / 19:34
2
answers

Delete a class but java keeps finding it

As the title says, I initially had the class PantallaConsultaPaciente , then I created the class PantallaConsultaPaciente2 and eliminated the previous one, but when I run the application from Eclipse, I still raise PantallaConsul...
asked by 06.09.2016 / 16:47
1
answer

MediaPlayer does not work sometimes

The problem I have not located will therefore try to be as specific as possible because the compiler does not throw any errors and when it passes through the debugger test, either, but in some cell phones a very peculiar error occurs which I hav...
asked by 07.11.2018 / 04:09
2
answers

Why does not the while function?

I have to make a program and it does not work for me, the main problem is with the average, if I put it in while it prints me that it gives all zero, and I put it outside the while I jump error    ("Exception in thread" main "java.lang...
asked by 21.08.2018 / 01:59
2
answers

Get the URI of a Drawable in Res or Assets in Android

How can you obtain the path URI of a resource Drawable internal%, saved in res or assets ?     
asked by 10.10.2016 / 23:14
2
answers

How to calculate age, depending on the day on which it is calculated

I am making an application, where when entering the date of birth I calculate the age, but the key is that if the next birthday is closer to the previous one already celebrated, I will increase one year at the age. I have this code but I can not...
asked by 27.09.2018 / 19:13
3
answers

Use "View" to know which button has been pressed

I have a question, I can use view to know which button was used, I'm setting up a calculator and to save code I want to use a single method that can be used by all the numeric buttons, but to do that, I first have to know which button was presse...
asked by 13.10.2016 / 04:14
4
answers

Problem with Java / Linux dates

I have a problem with dates, a Spring application deployed on Tomcat. When I retrieve the data from the forms, they are stored correctly in the database in Windows. When I pass the application to Linux, the same date is stored but one day less....
asked by 14.10.2016 / 18:53
1
answer

Exo player when changing video orientation starts from the beginning.

I've been trying to solve the problem for days and nothing .. I am trying to implement the ExoPlayer in an application where videos and instructions and cooking recipes come out. The video works normal and everything is fine but when I change th...
asked by 10.08.2018 / 10:13