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.
                UUID mId;  //be sure to import java.util.UUID;
  //generate random unique identifier
  mId = UUID.randomUUID();

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:
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:

  1. Right click -> Source -> Override/Implement Methods 
  2. Check box target method(s) 
  3. Click OK