Posts by thalissonestrela • 366 points
9 posts
-
0
votes1
answer577
viewsQ: Sending location to webservice
Hello, I have a problem, I have a service on android that captures the user’s location in a certain range. Captured I send to the server, where it will pick up this location and save in the…
-
4
votes1
answer541
viewsQ: Type of android keyboard, text and number
There’s how I make the android keyboard stay with two types, in case I wanted numbers and letters. I tried using android:inputType, but it didn’t work. Do you already have a way to solve this? Thank…
-
7
votes6
answers1359
viewsA: How to insert an if/Else into an echo?
You can use it as follows: echo '<option value="0" ' . (($resultado['status'] == 0) ? 'selected=selected' : '') . ' >Em revisão</option>'; echo '<option value="1" ' .…
phpanswered thalissonestrela 366 -
2
votes1
answer775
viewsQ: Check visibility of android keyboard
How do I check whether the android keyboard is visible or not? Some people say to calculate the difference between the size of the Rootview and its general layout of the activity, but for me, it…
-
3
votes3
answers436
viewsA: Event Routine - PHP
You need to use the crontab(Linux) and cronjob(Windows). You can type crontab -l to check scheduled tasks. You can type crontab -and to add a new rule to a new task. Format [minutes] [hours] [days…
-
1
votes3
answers1020
viewsA: Scrolltop with the field that is in focus
Use jQuery for this. var el = $("#seuidentificador"); el.stop().animate({scrollTop:0}, '500', 'swing', function() { console.log("Funcionou!!!"); }); Where, his its identifier is your input. If you…
-
1
votes0
answers87
viewsQ: setError() overriding the Actionbar
I have a screen that the user changes their data, and as validation I use the setError() to specify which element has the incorrect value. But I have a problem when I have scroll on the screen, the…
-
4
votes6
answers8335
viewsA: How to know if the form is sent
In the file you receive the data via POST, you can use: if (getenv('REQUEST_METHOD') == 'POST') { /* faz alguma coisa */ } NOTE: getenv() does not work with ISAPI And one more option, which is the…
phpanswered thalissonestrela 366 -
2
votes1
answer65
viewsQ: Alertdialog.Builder with undue space
I have a space at the bottom of my custom Alertdialog. I don’t know why it’s happening, knowing that I didn’t set any margin or padding at the end of my view. If anyone can help. Here’s a real print…