Posts by Jhonatan Pereira • 537 points
60 posts
-
0
votes1
answer256
viewsA: Connection android webservice
Your PHP file is not generating JSON correctly, this may be the cause. Test in the browser and see if it is generating JSON, if it is Jsonarray, starting with [, or if it is Jsonobject, starting…
-
1
votes0
answers33
viewsQ: Doubt about the Actionbar Tab
When my app opens, the Tab appears like this: But if I open a new one View and return to the home screen, it already appears like this: Does anyone know why? And how do I always show up with the…
-
0
votes1
answer77
viewsA: Can someone help me with the GET function?
Visit the PHP documentation: PHP: $_GET - Manual As for him already picking up the ID by GET, if I understand correctly, you can use another variable to pass other values, separating them by the…
-
2
votes1
answer109
viewsA: App is closing, while consuming webservice
Step 1: Enter a check to see if there is an internet connection: // Função para verificar existência de conexão com a internet public boolean verificaConexao(Context classe) { boolean conectado =…
-
0
votes2
answers234
viewsA: JSON treatment returned from PHP
I was able to solve it in a simpler way, using the org.json library.* JSON returned from PHP: {"postagens": [{"URLIMG":"1.jpg", "NOME":"Jhonatan", "SOBRENOME":"Pereira", "ID":"2", "IDUSER":"1",…
-
0
votes2
answers234
viewsQ: JSON treatment returned from PHP
I would like to know how to manipulate the data JSON below. If the structure is correct, and if not, how change the structure of it? { "postagens":[ { "URLIMG":"1.jpg", "NOME":"Jhonatan",…
-
0
votes1
answer200
viewsQ: Viewpager with different content on pages
I can’t create different pages with Viewpager, I took a tutorial that explains how to use the component without Fragments, but you don’t have the information I need to solve this problem. Follow the…
-
0
votes1
answer18
viewsA: Viewflipper does not detect Motionevent after inserting Scrollview into it
I was able to solve it with the Viewpager component instead of Viewflipper :) I used the example in the platform documentation:…
-
0
votes1
answer18
viewsQ: Viewflipper does not detect Motionevent after inserting Scrollview into it
Use Viewflipper with 4 "pages". Worked, until I insert Scrollview on each of the pages. How can I resolve?
-
2
votes2
answers5153
viewsQ: How to calculate distance from the user’s location to another address?
What I need to do is very simple, but I don’t know how to do it. It works like this: I pass an address to the user and once he is in place he presses a button, while doing this the application must…