Posts by Luiz Carvalho • 3,644 points
110 posts
-
7
votes1
answer3924
viewsQ: How do I start a skype call from a browser action?
I need to add an "online support" button to my page but instead of creating an online chat I would like to use Skype. What is the best way to implement this?
-
0
votes3
answers3415
viewsA: How to interpret the use of the CPU through the monitor of the options of Android developers?
Another good option to measure CPU usage (among others) is to use the command: adb shell top -m 10
-
47
votes3
answers12951
viewsQ: Java += operator
I always thought the operator += functioned only as a shorter form for the traditional increment, for example: i += j; Instead of: i = i + j; But when performing the following experiment: int i = 3;…
-
14
votes3
answers514
viewsA: Java / Android: how to view Stacktrace log
I found a very practical way that I honestly didn’t know could be done like this. try { //CODE }catch (Exception e){ Log.e(TAG, "Seu erro: ", e); }…
-
13
votes3
answers514
viewsQ: Java / Android: how to view Stacktrace log
How can I display the whole exception error code (Fullstacktrace) in Android Log? try { //CODE }catch (Exception e){ Log.e(TAG,e.getStackTrace()); }…
-
34
votes4
answers15336
viewsA: In Git, how do I edit the description of a commit already made?
It’s Tranquil William, do the following git commit -m "Nova mensagem que vai substituir a anterior" --amend With this you will overwrite the old message of your commit! And even if the commit isn’t…
-
4
votes2
answers313
viewsQ: Database on does not reflect changes in the same Activity
I am trying to update the database in my application. Trying to simulate a possible error in production intentionally I give a DROP in a table, and soon after I do a SELECT in the same table and…
-
10
votes2
answers1364
viewsQ: Sqlite error on Android : error code 11: database disk image is malformed
I have a version of the App in production where it is allowed to mark a message as favorite, only that this totally random error happens provoking corruption of the database and resulting in…
-
27
votes2
answers22046
viewsA: What is the difference between px, dp, Dip and sp?
px: DEFINITION: Corresponding to the number of pixels on the screen USE: avoid using px for everything, only in very specific cases is recommended. sp: DEFINITION: (Scale-Independent Pixels) Idem to…
-
8
votes4
answers265
viewsQ: How to set --no-ri --no-rdoc as default when using Gem install?
Always when giving Gem install I have to provide the parameters --no-ri and --no-rdoc, I would like this to be standard for this command! How can I do that?