Posts by CarlosOttoboni • 111 points
3 posts
-
3
votes2
answers210
viewsA: Device error(Samsung Galaxy S4) when running app, but in Emulator works!
The first thing I would do to find out where the problem is is to check the permissions of the app, if you are allowed to access the internet. The second would be to check if the device is on the…
-
2
votes1
answer852
viewsA: How do I layout an android app in Photoshop using PX if google only provides me DP?
You need to do pixel to dp conversion depending on the density of the screen you intend to develop, pixel dp ratio is given by: pixel / density For example, if you want to develop for hdpi density…
-
6
votes5
answers10429
viewsA: How to exchange the value of two variables in Java?
The easiest way is to add the two variables together and then subtract by the initial value of the other. That way: int a= 8, b = 3; a = a + b; b = a - b; a = a - b;