My Blog Has Moved!

Posted in About Me, Software Development on June 20, 2016 by jstevenperry

If you’ve found your way here, then first of all, I want to thank you for reading.

Second, my blog has moved!

The new address isĀ here, at my company’s website.

I’m not planning to move any content that may be linked in Google. Only new stuff will be added to the new blog site.

Again, thanks for reading!

–jsp

Android Hello, World Video Tutorial

Posted in Android, General, Java, Software Development with tags , , , , , on June 12, 2016 by jstevenperry

Check out my latest video Tutorial on YouTube!

In this video I show you how to:

  • Create an Android Studio project
  • Create an Android Virtual Device (AVD)
  • Run the Hello World program
  • Add custom behavior to the program
  • Add a string resource to strings.xml

Below is the main source code for the project.

MainActivity.java:

package com.makotogo.mobile.helloworld;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);

   // Add button
   Button helloButton = (Button)findViewById(R.id.helloButton);

   helloButton.setOnClickListener(new View.OnClickListener() {
     @Override
     public void onClick(View v) {
       TextView textView = (TextView)findViewById(R.id.textView);
       textView.setText(R.string.seriouslyHelloWorld);
     }
   });
 }
}

activity_main.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:paddingBottom="@dimen/activity_vertical_margin"
   android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   tools:context="com.makotogo.mobile.helloworld.MainActivity">

 <TextView
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:text="@string/helloWorld"
   android:id="@+id/textView"
   android:layout_alignParentTop="true"
   android:layout_alignRight="@+id/helloButton"
   android:layout_alignEnd="@+id/helloButton"/>

 <Button
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:text="Click Me!"
   android:id="@+id/helloButton"
   android:layout_marginTop="76dp"
   android:layout_below="@+id/textView"
   android:layout_centerHorizontal="true"/>

</RelativeLayout>

strings.xml:

<resources>
  <string name="app_name">HelloWorld</string>
  <string name="helloWorld">Hello, World!</string>
  <string name="seriouslyHelloWorld">Seriously, HELLO, WORLD!!</string>
</resources>

I hope you enjoy the video!

–jsp

Okay, Last Time

Posted in General, ThingsThatIrritateMe on September 3, 2015 by jstevenperry

stopsayingthat

Carry on.

Need a Java Expert?

Posted in General, Java, Software Development on April 21, 2015 by jstevenperry

I will be available for Java development work starting in the mid-to-late-July timeframe. If you’re looking for 3-4 Java developers, engage me instead. You won’t be sorry.

Check out my resume at

http://careers.stackoverflow.com/jstevenperry.

–jsp

J Steven Perry

New Makoto Java Android App: Policy Debate Timer

Posted in Android, Java on November 30, 2014 by jstevenperry

My company, Makoto Consulting Group Inc, released its first Android app, which is available now in the Google Play Store:


Get it on Google Play

Special thanks to Foster Perry for the design work and business analysis for the app.

–jsp

Amazon Prime – Totally Worth It

Posted in Personal with tags , on December 27, 2013 by jstevenperry

I joined Amazon Prime a year or so ago. Not only do I get free 2 day shipping on all my orders, they have fantastic customer service! So, I ordered some stuff that was supposed to show up a week before Christmas. Well, it never showed up. So I waited an extra week, just to be safe. At this point, I figured the package just got lost. So I started a live chat with an Amazon.com rep and in minutes I was told I will have a credit card refund. If I end up getting the items from UPS (I’ll be over here holding my breath), all I have to do is contact Amazon.com for a shipping label and I can ship them back at no charge.

That’s pretty awesome. I don’t know whether or not my outstanding customer service experience today is because I’m a Prime member, but I’d like to think it is. If not, then all the more reason to shop with Amazon.com.

Hallelujah!

Posted in Java, Open Source, Software Development on December 27, 2013 by jstevenperry

Hallelujah!

Anyone who uses the JDK Date/Time API knows it, well, sucks. Badly.

Joda-Time was created to remedy the numerous shortcomings in the JDK’s stock Date/Time API. And it pretty much ruled for a very long time. Include it in my Maven POM and, boom!, just like that, I had a very good Date/Time API.

I wrote an article for IBM DeveloperWorks about Joda-Time in an attempt to share this news with those who didn’t know they had to suffer in silence.

So imagine when I read this article at JavaWorld about JSR-310. Basically Joda-Time’s (very few) design flaws will be fixed and the spirit of Joda-Time will be included in the JDK as part of Java 8 (at least, that is the plan). I’m sure that is not a completely accurate characterization of the situation, but basically the new JDK Date/Time API will be very familiar to anyone who has used Joda-Time.

–jsp

Follow

Get every new post delivered to your Inbox.

Join 64 other followers