Month: January 2015

This may not be the best approach, but I figured I’d document the process that I go through, especially because it turns out there’s some hidden gotcha’s that took a bit of sleuthing to figure out.

1: Fire up IntelliJ and select New Project from the File menu. For there, select Android from the list on the left, and “Application Module” from the list on the right.

I would rather not create an application simply for testing, but this is the only option that allows you to select the target device (emulator or actual device.)

2: Click on Next and fill in the application, package, and activity name:

3: Click on Next and fill in the project name, select the project SDK, and select the target device. These need to be configured for your own requirements regarding which SDK to use and how you are working with Android (emulation or actual device):

4: Click on Finish.

5: If you haven’t done so, and you’re using an actual Android device, connect it and wait for the “AutoPlay” dialog to appear. I learned that this may take a while — under a minute, but still I learned that you have to wait for this to happen before the IntelliJ will talk to the device. Once the AutoPlay dialog appears, close it.

“I needed to find the distance from a Point to a Bezier Segment. Turns out you need lot of Math tools. A polynomial class which can do simple math, derivate and find its roots. As well as Complex arithmetic.”