Posts by Mateus • 2,063 points
63 posts
-
4
votes1
answer88
viewsA: How to change the message "x app stopped working" on Android?
Daniel, Sorry to point this out, but never play a pure Exception for the user. This message is happening because it is just getting into some catch and you are doing something like…
-
1
votes2
answers9602
views -
1
votes1
answer198
viewsA: Change the source via xml
Thiago, Your question is quite interesting. The solution I have always used is the one that follows in my answer. Even today I did not find another and I would just like to do also by XML, it would…
-
2
votes2
answers771
viewsA: Securityexception android
Permissions management has changed. It is now necessary to request permission from the user at the time it is needed. No more by Android manifest (for the new versions). For the old versions, leave…
-
1
votes1
answer149
viewsA: Another class Android Bundle(Adapter)
Diego, To solve your problem, create a file called Colors.xml in values (if you don’t have it). Like this: <?xml version="1.0" encoding="utf-8"?> <resources> <color…
-
1
votes1
answer294
viewsA: Store file with more than 1 Mb Mysql
Dear This could be a timeout error, not a storage error. Medium Blob, in theory, stores up to 16MB (Version 5.7) according to the documentation. Check the Mysql configuration file, example:…
-
2
votes1
answer240
viewsA: Doubt to create dialog box in android studio
I believe that logic can be greatly improved. As I analyzed part of your code and realized you are learning Android, I will suggest you follow this script (I will not propose you more accurate…
-
2
votes1
answer490
viewsA: Is giving error in the matrix using the while loop
Is this it? I just changed the size of the matrix to 2x2 for ease. Make sure you understand! #include <stdio.h> int main(int argc, const char * argv[]) { int inteiros[2][2]; inteiros[0][0] =…
-
1
votes2
answers232
viewsA: Mysql Query - Two tables and date range
A complete answer for you to reflect (I did not put the conditions of the Where clause, it is up to you). A traditional way is to use sub-queries for what you need this will work in most Dbms and…
-
2
votes1
answer350
viewsA: Invisible spinner in form
Dear, It is strongly recommended that you use Appcompatspinner instead of the default Spinner for various compatibility reasons. But what must be wrong is the display style and why it is appearing…
-
2
votes1
answer214
viewsA: Problem when trying to consume the webservice on android
Dear man, the mistake is in the requisition for a reason. After a few years working with Ksoap, I created a certain structure and wish to teach you how to solve this problem in an organized way with…
-
2
votes2
answers859
viewsA: Invert array (vector) without an external function, 'manually'
Although your question is in C language, just as a contribution to your question, in C++ (Object Oriented) we can use a very useful method for this and abstract this complexity: #include…
-
13
votes2
answers14208
viewsA: When to use WITH (NOLOCK)?
Your question is very interesting and is much deeper than my simple answer and depends on factors like: What is intended with the query, the DBMS in question and type of reading you intend. Let’s…