Posts by Luiz Cavalcanti • 348 points
6 posts
-
2
votes2
answers243
viewsA: How to make the program recognize ' x ' as multiplication?
By the question tag, I will assume you are implementing in Java. There are several ways to do this, the one I’m going to suggest is just one of them, not necessarily the best or simplest: Do the…
javaanswered Luiz Cavalcanti 348 -
2
votes3
answers250
viewsA: Java 8 + Android
Not. Android does not use Oracle’s JDK, nor is it exactly a port of it. Therefore, no, there is no way to use "Java 8" on Android. Remember that the majority of JDK7’s Features were only now…
-
6
votes1
answer1089
viewsA: Why is the "@" symbol being translated to "¿" when sent via SMS from an Android 2.3 device?
Answer: The real problem is that the symbol is being "replaced" by Operator and not by Android, you may notice when testing with all devices using the same carrier/Simcard. Previously, I found…
-
3
votes1
answer394
viewsA: How to set negative values for Android Seekbar?
As far as I know, a negative value cannot be established. What I usually do is increase the max to support the interval and subtract from the current value to show my range of values to the user.…
-
0
votes2
answers470
viewsA: Simulate receiving device connection on usb (adb shell Android)
It is not possible to make simulated connections to a real device. For this, unfortunately you will need to use the emulator.
-
4
votes4
answers1290
viewsA: How to bring a specific result of an SQL query above the others?
For your specific query, something like this works: SELECT DISTINCT `user_id` AS `id`, `user_name` AS `name` FROM `users` ORDER BY `id` = 3 DESC, `id` ASC; In this way, it is ensured that the first…