Posts by Wellington Avelino • 2,844 points
68 posts
-
4
votes1
answer4002
viewsA: Textview allowing only numbers
To allow only numbers you must set inside your EditTextin this way : android:inputType="number" Another way would be : <EditText android:id="@+id/myNumber" android:digits="0123456789."…
-
2
votes2
answers705
viewsA: How to create JAX-RS REST Service webservice and consume with android application?
To consume your WebService you could work the following way: public class testeREST { private String URL_WS; //variaveis de contexto //definiria o metodo a ser acessado no seu webService("Path")…
-
0
votes3
answers124
viewsA: Differences xml lines Android (Eclipse)
To assign id's in its components use the form below: <TextView android:id="@+id/textTituloGrupo"/> In his Activity would look something like this: private TextView textTituloGrupo;…
-
1
votes1
answer75
viewsA: Parcelable Android
You can implement this Parcelable as follows: public Internship(Parcel in){ this.enterprise = in.readParcelable(Enterprise.class.getClassLoader()); this.id = in.readInt(); this.publicationTime =…
androidanswered Wellington Avelino 2,844 -
2
votes1
answer78
viewsA: Error running web application
Check the version installed on your server, according to the error presented by you the installed version is less than J2SE 8 = 52 Unsupported major.minor version 52.0 (Unable to load class…
-
4
votes3
answers191
viewsA: Has the standard Java output function accepted several parameters?
If you observe the Method println(String) of the kind PrintStream, not accepted as arguments String , Qualquertipo ,String, thus the need to concatenate using +. This is also valid if you try to…
javaanswered Wellington Avelino 2,844 -
5
votes2
answers676
viewsQ: How to access the SDCARD on Android 4.4(API 19)
Currently I have an application running on 100 phones with android 2.3(established by the client), but are changing the phones to 4.4 and use the sd card to store and then display as product…
-
1
votes2
answers363
viewsA: Error in Java Resources package in Maven project
To fix this error, follow the steps below: Eclipse > Project > Clean Eclipse has an error marker Markers, it is interesting to always look at it in these cases.…
-
1
votes2
answers109
viewsA: Nullpointerexception on Android
Felipe, see if this helps you //verifica se o SDCARD está no aparelho if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { Toast.makeText(this, "Erro, SDCARD Não…
-
0
votes0
answers155
viewsQ: getView being called several times
I am creating an Android app and I came across a problem, I created an Adapter to fill the items on my screen but the getView method is being called several times when I select the product thus…
-
0
votes2
answers81
viewsA: Is it possible to make two Selects in a Try?
Wouldn’t it be easier for you to use the JOIN to get this data and return to your object? You could do so public List<Status> pesquisarComboAtendimento(int idPerfil) throws SQLException,…
-
0
votes1
answer147
viewsQ: Post Too large - Glassfish
I’m performing a routine search on all occurrences that have already been concluded, but when I enter one and select the attachment mine glassfish returns the following message…
-
4
votes2
answers686
viewsQ: Full Date Return Type
How do I get that return? 2014-08-05 18:29:47.757 Using the Date. Date data = new java.sql.Date(new java.util.Date().getTime()); Using that my return is just 2015-02-03 and does not return the…
-
3
votes1
answer651
viewsQ: Glassfish does not take root context from the application
EDIT Guys I managed to solve, I was missing point my application to my virtual server, thank you. I uploaded an application on the server today and glassfish is not taking the context of the…
-
2
votes1
answer1383
viewsQ: Load values from an already saved Selectitem into a database on the screen
I have a problem to load the selected value in <f:selectItem> by the user When render gets that way: <option value="320">Coordenador Desenvolvimento</option> I wanted the attribute…
-
4
votes1
answer93
viewsQ: Change lines of code within files with Apache Ant
I’m studying Apache Ant to try to change some existing lines of code within files, but so far I haven’t found anything about it in the official documentation the most I can do is rename files like…
-
2
votes2
answers1176
viewsA: Error Building on Jenkins
As I found what I needed I will post here for further questions, I will leave a bonus also because the glassfish plugin does not catch so I used the Haus post. Below follows how my build was…
-
2
votes2
answers1176
viewsQ: Error Building on Jenkins
I’m having a problem configuring the build in Jenkins follows errors: this happens in the job " configuration in the build step", where I choose the version of Maven and then below I need to…