Questions tagged as 'java'

1
answer

Because my countdowntimer treats the time received according to the cell phone

I have a countdowntimer that gets a long value of 86400000 (24 hours) in my android 5.1 emulator it recognizes 24 hours and starts counting since then but in other emulators and in my physical phone it does not start in 24 hours, it starts at 20...
asked by 26.08.2017 / 19:14
1
answer

How to resolve the following error: HTTP Status 500- Internal Server Error

I'm trying to make a web application using java, jsp, servlets and database. But when I run as in addClient.jsp Class this error appears:    HTTP Status 500 - Internal Server Error. I have already looked at the internet on how to solve it...
asked by 26.08.2017 / 22:42
1
answer

Error in setting up postgres with wildfly

I've done the postgresql configuration: C: \ wildfly-10.1.0.Final \ modules \ system \ layers \ base \ com \ postgresql \ main I added the files: module.xml postgresql-9.4.1208.jre7.jar The bank has version 9.6 and drive 9.4, can the pr...
asked by 09.09.2017 / 05:54
0
answers

How to use JobScheduler?

I have a project to make my activity wake up every 12 hours and I could not find the right code on JobScheduler, can anyone help me with the code?     
asked by 23.08.2017 / 07:26
1
answer

Query hibernate logic

public boolean minimoUmSuperUsuario(Usuario usuario, Session sessionExterna) throws HibernateException { Criteria crit = sessionExterna.createCriteria(Usuario.class); return (Long) crit.uniqueResult() > 0; } I need to do the follow...
asked by 23.08.2017 / 15:11
0
answers

How to highlight a date in the CalendarView widget?

Project XML <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="matc...
asked by 04.09.2017 / 16:54
1
answer

How to solve InvalidFormatException in xls file generated by jett?

I have a method to generate report made with jett: Map<String, Object> beans = new HashMap<String, Object>(); beans.put("fichasTecnicasMateriaPrimaResumo", fichasTecnicasMateriaPrimaResumo); try { InputStream inPath = Produt...
asked by 04.09.2017 / 17:53
1
answer

Send notifications from a site for push android notifications

I created a social network, and I implemented notifications in it. However, I can not find an effective way to send site notifications (tastings, comments, messages) via push notifications to the android app. I configured the firebase, the onesi...
asked by 02.09.2017 / 04:28
1
answer

How to resolve the NetworkOnMainThreadException error?

I'm having an error in passing the HTTP Client from JSON to Android. Follow my code in JSON: // constructor public void JSONParser() {} public JSONObject getJSONFromUrl(String url) { // Making HTTP request try...
asked by 18.06.2015 / 14:27
0
answers

How do I capture data from a stream (Music name, album art, band name)?

How could I capture the metadatas of an audio stream and put some data like album cover, song name, and display it in my activity.     
asked by 21.08.2017 / 06:00