UUID mId; //be sure to import java.util.UUID; //generate random unique identifier mId = UUID.randomUUID();
Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.
Sunday, May 25, 2014
Generate Random Unique Identifier in Java
Here's a quick one on how to generate random numbers.
Friday, May 23, 2014
Beginning Android Development
I started learning Android Development a couple weeks back. I began by downloading necessary components:
- Java SDK
- ADT (with Eclipse and Android Libraries)
The emulator was terribly slow on my hardware so I downloaded the Android device driver for my Android device. This is required for debugging from USB port with your device.
Next, I tried the tutorials at Google: http://developer.android.com/training/index.html
The few tutorials that I tried were frustrating because of compatibility issues between versions. I purchased the Kindle book, "Android Programming: The Big Nerd Ranch Guide". I'm through 4 1/2 chapters so far and it is much better. I'll begin posting again to document any handy tips for Android development.
Override methods in Eclipse
Here is a shortcut to override methods in Eclipse:
Reference: http://www.java-tips.org/other-api-tips/eclipse/how-to-override-a-method-from-a-base-class-using-ec.html
- Right click -> Source -> Override/Implement Methods
- Check box target method(s)
- Click OK
Reference: http://www.java-tips.org/other-api-tips/eclipse/how-to-override-a-method-from-a-base-class-using-ec.html
Subscribe to:
Posts (Atom)