Questions tagged as 'java'

1
answer

Android - WebView click Error calling method on NPObject

I'm trying to try to perform an action in the Android application when I click on an html element in the webview. When clicking on the element, the event is activated but the following error occurs in alert(err) of javascript inside try c...
asked by 18.04.2017 / 17:23
1
answer

I make the verification of 2 more dates is persisting

I have a form, and before saving I want you to do a check that in this case would be two dates. However, when a check is made, it will send a message until it is OK. More ends up appearing another referent who managed to persist and ends up savi...
asked by 30.03.2017 / 19:13
1
answer

Doubt with algorithm and vector

Help me solve the following algorithm. In this case, it is a vector of 20 positions. My doubt is what values would be stored in vector A? for (i=1, A[0]=1; i< A.lenght; i++) A[i] = A[i-1]*2; Correct answer:    a - Elements of type...
asked by 30.03.2017 / 16:43
0
answers

SQLite leak without having any class using SQLite

Good evening guys, I'm building an Android app and the last thing I need is to set up the local bank. I built it but realized that there were errors in memory leak, I thought I had it fixed but the same warnings kept appearing on the conso...
asked by 05.04.2017 / 04:21
1
answer

How to configure log4j in a java project that does not have the src folder?

I have a Java project that does not have the src (8z!) folder and I need to use log4j, I created the log4j.properties file and inserted it into the main package (com.meuproj.main), but the log file is not created when it generates the applicatio...
asked by 05.04.2017 / 15:05
1
answer

Error placing list on Android

I'm starting now with Android development. I tried to put together a list, but it is not working. In the Preview only Item 1, Subitem 1 appears. Follow the .Java public class Lista extends AppCompatActivity { @Override protected vo...
asked by 28.03.2017 / 20:33
1
answer

I can not do a postback in my project

I'm trying to make a postback in my project but I'm not getting it. When I submit the form, it continues to do select without precision. That is, it stayed the same way public class FacesUtil { /** * Método que avalia se é postBack. * @r...
asked by 29.03.2017 / 00:19
1
answer

How to configure the mvc resoures tag without xml

Good evening. I'm trying to set up the annotation of xml without, as per the code below, to add my js / css pages inside, but I'm not getting it. public class AppWebConfiguration { @Bean public InternalResourceViewResolver internalResourc...
asked by 29.03.2017 / 03:50
2
answers

How to get names of objects contained in JSON with Java?

I needed to extract the name of the objects contained in a JSON file, for example, to show that the JSON file below has the objects batteryCharge, luminousFlux, id, temperature. But do this search without specifying the name of the object to be...
asked by 29.03.2017 / 17:23
1
answer

How to do a search by input text of html?

I want to do something like Google, where you start typing and the list of options will appear according to what you entered, where these options are already registered in the database ... EXAMPLE: A cafeteria system, where you start typing "...
asked by 29.03.2017 / 22:09