Categories
Android Java Test Driven Development

Asserting for a Toast message using Robolectric

I’ve recently put together a few proof of concept applications, and since they’re “rough and ready” applications, a lot of the functionality is actually mocked, or given a stubbed implementation. For example, I’ve got various buttons for things like “sign in with LinkedIn” or “Connect with Facebook”. Since its just a proof of concept, and […]

Categories
Agile Android Methodologies and Practices

A second app to launch; Agile Planning Poker

After launching my first application onto the market back in March 2011, and amassing somewhere in the region of 15,000 downloads since it’s launch, I was eager to produce another. I offered up my services at my work to develop an application to “test the water”, teaming up with the marketing director we created a […]

Categories
Android Java

How to add a splash screen to your android application in under 5 minutes

Adding a splash screen to your application is a quick and easy way to make it look more well rounded, complete, and more professional, it can also serve as a useful distraction whereby you have an extra few seconds to initialise your application components before displaying them to the user. In this post I’ll show […]

Categories
Android

Converting dp to pixels in android

Sometimes in android you have to deal with pixels, which can often be awkward, such as view.setPadding(int, int, int, int).  Obviously this is not ideal as pixel ratings vary from device to device, nonetheless there is a work around for this Simply come up with the value you want in dip (density independent pixels), such […]

Categories
Android

SMS text messaging simulation on android

As part of an application I’m currently developing, I need to be able to interogate incoming SMS messages. Since I’ll be developing against the emulator initially I need a way of sending in SMS messages to the emulator. Fortunately, we can use adb to poke in SMS messages at will, as detailed below. Ultimately, you’ll […]

Categories
Android

How to remove the default grey title bar on android apps

Fed up of the default title bar on your android applications? We can get rid of that easy, either use the following in your activities to do it : Or, the way I prefer, disable it application wide by slipping the following into the AndroidManifest.xml file :

Categories
Android Continuous Integration Java Maven

Automating android application signing and zipaligning with maven

This is something that has had me tearing my hair out for a few days now, I was pretty much border-line braveheart-ing my screen…. I’ve recently been on a little drive to try to maven-ize my projects. All had been going well until I needed to sign and zipalign my APKs. This post will help […]

Categories
Android Java

How to send an email from your Android application…

If you’re like me, you’ll certainly like to hear feedback on your applications out there on the market, and what better method than via a direct email link. I usually opt for a “contact me” button, which when clicked will open up the phones email client with a new email ready. The mail-to and subject […]

Categories
Android

Publishing your app to the Android Market, a noobs guide…

Hola a todos! Its been a little while since I last posted, mostly because I’ve been busy getting my first app in a state thats good enough to be published, in which I have, and heres a little write up on how easy it is to actually publish. If you head over to the official […]

Categories
Android

How to place your ads at the bottom of your screen in Android

So you’ve setup some ads using AdMob or AdWhirl for your android application, and you’re having a hard time getting the ad to appear at the bottom of your screen? Well fear not, for we have a solution. What you need to do, is to have a RelativeLayout, and within that, have one LinearLayout for […]