Categories
Android Java

Binding your buttons to your activity, the easy way!

OK, so you have several buttons on your view, all linked into the same activity. Sounds simple enough, you probably have something that looks like the following : That works fine, however if you start adding more and more buttons, it’ll become quite messy. I mean seriously, do you really want to be declaring your […]

Categories
Certification Java SCJP

Overriding and Overloading, a n00bs explanation…

This is easily one of the most confusing concepts to a n00b, but to be honest its relatively simple. The most confusing part is that both start with the letter ‘O’. You’ll really need to understand this if you plan to get anywhere as a programmer, as you can bet you’ll be asked “what is […]

Categories
Certification Java SCJP

Static Imports, how they could and should be used

One of the new features of Java 5 is the static import, its quite simple in nature. You have probably done something like the following many times before : Nothing too complex, you’re refering to static methods on the System and Math classes. If you use a lot of static methods from other classes, you […]

Categories
Certification Java SCJP

Declaration Rules in Java

Another one of my short and sweet posts in my SCJP study guide section. This one is quite straightforward, so we’ll keep it quick, since I know you’d much rather be facebooking or watching cats do strange things on youtube… Declaration rules, in regards to the class files themselves, meaning what you can and can’t […]

Categories
Android Java XML

Android or Standard Java; Mapping your XML onto POJOs easily, and vice versa

I’ve listed this post under Android, but to be honest this could apply to both J2SE and J2EE, its not really specific to Android but it was part of a requirement I was working with for a recent Android project. The problem I had, was that I was getting an XML String as a response […]

Categories
Android Continuous Integration Java Maven

Android; Continuous integration, all made lovely with Maven

Lets face it, the eclipse ADT plugin is great for getting an android application up and running quickly, but if you want an easier way to get libraries, and a continuous intergration environment for robust automated testing and building, then maven is the way to go. IntelliJ have recently released the Early Access Program to […]

Categories
Android Java

Android; how to actually put your applications APK onto a device

OK, so you’ve been developing your “hello world” application in Eclipse for a little while, and now want to actually test it out on a device. The first thing you need to do is to create your APK file, this is the bundled application file and gets installed similar to how an EXE file would […]

Categories
Java SCJP

Identifiers and JavaBeans

Identifiers are what we use to identify parts of our code, whether this is a class, method or a variable. There are some ground rules on the names we can give to these identifiers, and it is good to understand the ground rules regarding these. There are 3 levels, or aspects of identifiers, and are […]

Categories
Java Yahoo! APIs

Tutorial; How to call Yahoo! REST web services the easy way!

I’ve got some requirements where I need to call a REST web service from an Android device, so I figured I’d get back to basics, and try to call a REST service through a simple Java application, just to see if I can get it working. After trawling the web for what seemed like hours, […]

Categories
Android Java

Android; Querying data from your phone book; names, addresses, postcodes, emails etc

One of the more useful features of Android is the ability to obtain data from elements of Android itself, such as the phone book. Your application may require data from your phone itself, such as your contacts, and more specific items such as all your contacts email addresses, or postcodes. In this post I will […]