ScanPaste – My first app released to the Android Market
Last week I released by first Android application on the Android Market. It is called ScanPaste. The application lets you scan barcodes and then copy the scanned data to the phone’s clipboard for pasting into web pages, emails etc.
I had been looking for a simple app to build, to test out the end to end Android Market publishing process and when I saw this blog post by about populating your Google books list using barcodes scanned with a USB scanner, I figured why not build an Android app to do it.
Now scanning barcodes with a phone’s camera is not that simple but luckily someone else has done all the hard work. The ZXing team have released an excellent barcode scanning application and library. Even better, using a cool feature of Android, integrating barcode scanning into ScanPaste was only a few lines of code!
In an Android application each screen is broken down into it’s own little task called an Activity. If an Activity is correctly “marked” it can be initiated not only by the application owning the Activity but by other applications. This is what the nice guys on the ZXing team have done and with their application installed, any other application can simply use the following code to scan and process barcodes:
...
// start the scan
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivityForResult(intent, 0);
...
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (resultCode == Activity.RESULT_OK && requestCode == 0)
{
Bundle extras = data.getExtras();
String result = extras.getString("SCAN_RESULT");
// do stuff with result here
}
}
The rest of the app is pretty straightforward, a couple of buttons, a text field and some error checking. All up the application is less than 100 lines of code.
In all it took a few hours to put together and test. The bulk of the time was actually spent working on the icon :) The 1.5 Android platform has some pretty clear guidelines and I was trying to adher to them.
Building a signed app for upload to the Market was a snap, just a menu click and a step by step wizard. Actually publishing the application was as simple as uploading the signed .apk file, filling in a form and clicking on upload. Couldn’t be simpler especially when you compare it to the nightmare process of uploading an iPhone app to the iPhone App store and of course the Android Market doesn’t have a vetting process so as soon as the upload was complete the application could be downloaded by anyone.
One of the things that took me by surprise was that within half an hour the application had been downloaded 20 times. A week later it has been downloaded 1849 times and it has 1156 active installs! It also has a 4 1/2 star rating and all positive comments. From the comments it seems that many people are using the app to scan the barcodes of books that they are selling on Amazon.
Ok the bad stuff….
Firstly, a minor one, in the developer console of the Market there is no way to see the comments about your application. You can see the rating and the number of ratings but that is it. Instead you need to look up the app in the Market application on your phone or view a 3rd party site like Cyrket (which apparently uses the Market’s own APIs so why the info cannot be surfaced in the developer console is beyond me).
Now for the killer…since I am in New Zealand I cannot sell any Android applications! I need to be in the US, UK or one of a couple of other countries to be able to sign up as merchant. What the heck is up with that? I see that as a major shortcoming of the Android platform and one that Google needs to rectify ASAP.
Hopefully with the imminent launch of the HTC Magic here in New Zealand this will change. Lets wait and see….
mPass article on NZ Herald
My Google Alerts just turned up this very nice article about mPass on the NZ herald site.
It is always nice to get good press about things you have worked on.
I like the comments too:
I downloaded the Air New Zealand mPass a couple of months ago and have used it successfully a number of times. It is a fantastic application and has sped up the already fast check in process with Air NZ. its great to see “our” airline is right up there with technology and has made the whole tiresome process of checking in simple and enjoyable. PS – the iphone rocks. just a shame about the data charges.
and
Excellent idea ! Keep it up, Kiwi’s – show the world we can make things better, faster and more convenient.
WordPress iPhone app
Just trying out the free wordpress iPhone app. It is pretty nice.
I did have to install it twice however. The first time I installed it, it just hung trying to connect.
I figured that it was broken and ignored it for a few days. On a hunch I just deleted and reinstalled it. Now it is working like a charm.
I’m not sure an iPhone (actually an iPod touch) is the best form factor for writing blog posts but it is nice and portable :)
Speaking of iPhones, I was looking into getting a mac mini to play with some iPhone development. I figured it would be cheap (and I could use the mini as a HTPC later on). Boy was I wrong $1800 for the mini! Guess no iPhone development for me :(
mPass for iPhone is live!
mPass for the iPhone is now available. If you are a lucky iPhone owner then you can download the application here or visit the AppStore and search for “mPass”
For those of you who are iPhone-impaired (like me), here are some screen shots:
- Welcome Screen
- Flights list screen
- Boarding barcode
- More options
Android getting ready for launch
Well things seem to be heating up in the Android world…
First off the new version of the SDK (0.9) became available. The APIs have undergone some rather radical changes since m15 but apparently they should be mostly stable now. Its going to take some serious work to get Bubbles! up and running again.
Next all sorts of leaks about the first Android handset (the HTC Dream) starting popping up on the Internet. Gizmodo have some spy pictures of the phone, it looks good but not iPhone sexy. I think the slide out qwerty keyboard is a good idea but it doesn’t help the devices looks.
Google also posted some information about their content distribution system which will be the Android equivalent of the iPhone’s App Store.
“Developers will be able to make their content available on an open service hosted by Google that features a feedback and rating system similar to YouTube. We chose the term “market” rather than “store” because we feel that developers should have an open and unobstructed environment to make their content available. Similar to YouTube, content can debut in the marketplace after only three simple steps: register as a merchant, upload and describe your content and publish it.”
It certainly seems that getting an Android application out into the wild will be far easier (and less expensive) then an iPhone application.
And lastly, today the Android team posted the Android Developer Challenge Winners gallery showcasing the final 50 apps and the winning apps. Some pretty interesting application here.
Its going to be interesting to see how Android and the HTC Dream do against the iPhone tsunami.



