Posts by igor.araujo • 326 points
9 posts
-
3
votes1
answer149
viewsA: Doubt Javascript Date() [front-end]
The best option to deal with this is to store the date in UTC. According to the Moment documentation, unless you set a Timezone, the date is always created in the local Timezone: Unless you specify…
-
1
votes1
answer91
viewsA: Code considered only at compile time can contain Undefined Behaviour?
You can use any valid expression within the decltype. And it does not matter if the instruction was executed its behavior would be undefined. This is because decltype does not execute the expression…
c++answered igor.araujo 326 -
3
votes1
answer180
viewsA: Navdrawer using activities instead of Fragments
Unfortunately it is not possible to implement a Navigationdrawer using activities the way you want. In reality, what you can do is fire attempts to start your Activities when a Navigationdrawer item…
-
1
votes2
answers1255
viewsA: Add subitem to my listview
Use Relativelayout instead of Linearlayout. Try the following: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"…
androidanswered igor.araujo 326 -
1
votes3
answers2382
viewsA: Eclipse does not generate class R
Are you using a library/project as a dependency on your project? Sometimes, when there is an error with a dependency, the R class is not actually generated. A classic example is when you use the v7…
androidanswered igor.araujo 326 -
0
votes1
answer1170
viewsA: Protecting Source Code ( Encrypt .jar )
Take a look at the Proguard. It is a class file optimizer, obfuscator and "compressor". It makes the reverse engineering process of your Java software much harder. He’s excellent when it comes to…
-
1
votes3
answers5690
viewsA: Catch latitude Android - Location == null
When you start the location service, it will only return you a valid position after it has managed to discover the user’s location. Try the following: public class MainActivity extends…
-
2
votes1
answer310
viewsA: Pdfdocument Support API (API 19) version from API 14
This is the first time I’ve heard of a library that generates PDF from the canvas of a View. I don’t believe there are any alternatives to this library. With any luck, the Android development team…
-
3
votes3
answers523
viewsA: Why does C array[6] equal 6[array]?
Well... The first thing we have to have and mind here is that a vector, nothing else is a pointer to a certain memory region. When the code line, int reais[10], is executed, 10 integers are…