Questions tagged as 'java'

1
answer

Receiving notifications within an activity

I can send a Firebase notification to my App but when I open that same notification it does not open within the Activity I want. How do I direct this notification to the activity so that I can see the message sent from Firebase?     
asked by 07.12.2017 / 13:44
2
answers

Problems using SelectOneMenu primefaces

I have a problem updating the data of a SelectOneMenu in primefaces, as the code below suggests, I have a button that when clicked, brings data from a WebService and stores it in a Devices variable on the back end and shortly after , it only thr...
asked by 21.09.2017 / 15:48
0
answers

How to count how many days of a certain type (Monday, Friday, etc.) exist between two dates? [closed]

How do I know how many weekdays of specific types (for example, only Mondays, Tuesdays, and Wednesdays) exist between two dates in Java? For example, from 01/12 to 30/12, how many segundas, terças e quartas are there between them?    ...
asked by 13.12.2017 / 19:26
2
answers

Error when calling activity [closed]

main Activity import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.Toast; public class principal extends AppCom...
asked by 10.12.2017 / 16:00
0
answers

Get internally redirected link in the android app

Aloha I'm developing an Android app to auto-log in to the wifi network, but I found a barrier. In the application, when the user clicks the "Log in" button, I need to internally access some address that will be redirected to the correct link....
asked by 09.12.2017 / 17:01
0
answers

Failed to convert to internal representation

Good afternoon, I'm working with Genexus Ev3 Up1 . I have a Data Provider that I search for a query and returns an SDT with the information, but the error in TOMCAT with the message:    java.sql.SQLException : Failed to convert to Inte...
asked by 11.12.2017 / 14:25
1
answer

Two-tailed Java calculation

How can I do the two-tailed or unicaudal calculation in Java? This calculation is done in Excel by the INVT function. This Excel function is done as follows: =INVT(0,0455; 4,81E+01) which returns the value 2,053 . What...
asked by 21.12.2017 / 12:33
2
answers

Vector getting a function that returns integers

I have some questions about vectors and functions. public class teste{ /*Função que retorna um vetor de inteiros com números aleatórios*/ public static int [] vetorFuncao(){ int numerosAleatorios [] = new int[10]; for(int i=0;i<10;i++...
asked by 14.12.2017 / 20:01
1
answer

Spinner does not load data from string.xml

My spinner just shows the arrow. in 1 it has to show the states and so informed the 2 shows the cities of that state Thisisthejavacode.publicclassPropertyRegisterActivityextendsAppCompatActivityimplementsOnItemSelectedListener{privateSpinners...
asked by 27.12.2017 / 13:54
0
answers

Deserialization of json wrong date object on java server

I have a user object and it contains the datadate attribute, I pass the user object to the server, the date I provide in the following format 2017-12-31, but the server changes to 2017-12-30, it always decrements a day on date server @POST...
asked by 03.10.2017 / 03:42