I was dealing with the case of use an EditText inside my AlertDialog that is created inside an DialogFragment last week and I remembered that I could write a tip about some problems of it. What problems? It's simple...An EditText...inside an AlertDialog...Ok, but how to avoid the dismiss of the Dialog when the user click in … Continue lendo DialogFragment/AlertDialog dismiss automatically on click button
Categoria: Java
Service restart behavior – Compilation
START_STICKY Service is restarted if it gets terminated. It will tell the system to create a newest copy of the service, when available memory is sufficient to do, after it retains state and recovers from the low memory. In this process we will loose the results that might have calculated before. onStartCommand() will be called on the … Continue lendo Service restart behavior – Compilation
Hibernate JPA 2.1 – StoredProcedureQuery
Thanks to... someone... that we have JPA 2.1 and the feature StoredProcedureQuery. Throught this method we can call easily a procedure in our database, set parameters and convert the possible result into Java object automatically. Let's imagine a simple procedure called 'SALES_ACCOUNTING' that receives two dates ('INITIALDATE' and 'FINALDATE') that determine the time period and … Continue lendo Hibernate JPA 2.1 – StoredProcedureQuery
Retrofit 2.0 – URL concept
I struggled with the new URL way when I started to use this new version. But it's easy to understand (after miss much because of the old version vices)! Just keep in mind that the base URL and specific URL of a resource are concatenated. So, you must to take care with '/' at the … Continue lendo Retrofit 2.0 – URL concept