Questions tagged as 'java'

1
answer

How to pass data received from an activity and put it in a recyclerview

Hello, I'm a beginner in java programming and I'm having trouble passing some serialized information from an activity to a recyclerview. When the second activity starts, it does not contain any information. Before trying to put in the recycle...
asked by 21.06.2017 / 22:46
2
answers

Client-server connection via socket

I need to make a socket connection as follows: My Android application has a "Confirm" button - when clicking the button it has to send a message to the server and after that the server has to return a message to my application stating "succes...
asked by 21.06.2017 / 20:45
1
answer

Animation of a button (ImageButton) android [closed]

I would like to know how to do when the user clicks the button it gets bigger and smaller when released, simulating a zoom effect on the component.     
asked by 21.06.2017 / 19:23
1
answer

Return Spinner Value Pra String

   I need to return the value of a spinner, to make a post, but the spinner is returning null! catliv = (Spinner) findViewById(R.id.catergorialiv); List<String> list = new ArrayList<String>(); list.add("Categoria");...
asked by 15.06.2017 / 22:09
1
answer

(Android Studio) Problems with OnRestart eating the main interface

Instead of the app showing the interface below, it pulls the OnRestart method straight and displays "Program Restarted" when I open the app. How can I correct that ? Code:TextViewtInforme;EditTexttValor;ButtonbtDescobrir;protectedstaticfinalStr...
asked by 14.06.2017 / 18:17
1
answer

Spinner returning Null

   My spinner is returning null, probably at the time of going to the string something is wrong and you have an error in these lines: com.example.thiago.myapplication.Activity_addinf.onCreate(Activity_addinf.java: 128) Caused by: java.lang.Ru...
asked by 14.06.2017 / 20:53
1
answer

How to pass the value of the EditText from a Fragment to the TextView of another Fragment?

I have a fragment containing an EditText in which the user will enter his name. In another fragment is the TextView that will receive the name entered in the previous fragment. Fragment Edit (where the user will type the name): pub...
asked by 14.04.2015 / 20:01
1
answer

Spinner does not display the selected value

I retrieve the data from Firebase and when I select one in the spinner, it does not identify the selected. This is the fragment spinner = (Spinner) view.findViewById(R.id.spn_l_estados); try { arrayAdapter = new ArrayAdapter( getContext...
asked by 29.06.2017 / 16:23
0
answers

Poll component does not call method

I'm trying to call a method periodically, but listner of poll does not call the method you want. Below my codes: <p:poll interval="10" update=":listaEncomendas:viewFull:resultadoPendentes,msgAtualizacao" listener="...
asked by 14.06.2017 / 19:20
1
answer

List in Android Studio

I have a listview that brings data when I add it to my ArrayAdapter . For example: adaptador.add("algum dado") . But I wanted this listview to bring data from a product registration, such as the name, quantity, and price that are...
asked by 26.06.2017 / 20:48