In this post I will explain how I have used the Android Preferences in a background service. The preference is used as an interval for updating a listview with some simple text items.
Read the rest of this entry »
Posts Tagged ‘Android’
Android basics - Applying some UI patterns
May 6th, 2011 by(http://blog.trifork.com/2011/05/06/android-basics-applying-some-ui-patterns/)
When I started with my Android application, I had the idea to create a home screen and an action bar just like one of the Android developers described in a blog item. I was really helped by the source code of the Google I/O Schedule app. In this post I will explain how I used several layouts to create my app.
Creating an Android app for your website with Spring Android and REST
February 7th, 2011 by(http://blog.trifork.com/2011/02/07/creating-an-android-app-for-your-website-with-spring-android-and-rest/)
As Android is really hot at the moment (and I have an Android phone), I wanted to create an Android app for my website. In this blog post I will explain the changes I had to make on the part of my web application and how I used Spring Android to interact from Android to my web application.
Creating an Android app with Google App Inventor
October 27th, 2010 by(http://blog.trifork.com/2010/10/27/creating-an-android-app-with-google-app-inventor/)
After a few times filling in the registration form and weeks from waiting, I finally got an invite for Google App Inventor. In this post I will explain how I have tried to rebuild an app that I created before with “normal” programming.
Top Free Android Applications
May 19th, 2010 by(http://blog.trifork.com/2010/05/19/top-free-android-applications/)
Since a week I have the latest Android phone of Sony Ericsson, the X10. As it is my first Android phone, the first thing I did was searching the Android Market for great apps to get the maximum out of my Android system.
In this post I will show you my selection of apps that I found useful, interesting or just fun to have.
Exploring the world of Android :: Part 3
October 8th, 2009 by(http://blog.trifork.com/2009/10/08/exploring-the-world-of-android-part-3/)
In my travels through the world of Android I faced a lot of challenges. Brave as I am, *cough* I conquered each one of them. A few of the challenges include saving activity state, asynchronous tasks, pagination, error handling, context/option menu's and even drawing custom application/tab icons in Photoshop! Some challenges I already shared with you guys, but there is one challenge in particular I would like to elaborate on this time.
The app I am currently building is getting larger every day, and so is the main Activity class! Because my main activity contains a TabHost with a bunch of tabs, it also contains references to all individual view components contained in those tabs. All kinds of listeners are registered on those components so the activity contains some inner and anonymous classes as well. So you could say that this activity now has way too much responsibility! What I was looking for, is a way to separate the main activity into multiple parts, each with its own clear responsibility.
As it turns out, you can create custom components for a single piece of functionality within an Activity. Exactly what I was looking for!
Read the rest of this entry »
Exploring the world of Android :: Part 2
September 17th, 2009 by(http://blog.trifork.com/2009/09/17/exploring-the-world-of-android-part-2/)
And I'm back! Reporting live on the glorious adventures in the exciting world of Android. This blog post is the second one in the Android series. This time with code samples! Yeah!
In my first blog post about Android I talked about setting up a project using Android. This time I want to discuss a more "advanced" topic: ListView performance. A ListView is a view component which allows you to display and scroll through a list of items. It can display simple text in each row, but is also able to display a more complicated structure. In the latter case you will need to make sure your ListView still performs well (read: renders fast and scrolls smoothly). I am going to provide solutions to a few different performance problems when using a ListView
Read the rest of this entry »
Exploring the world of Android :: Part 1
September 8th, 2009 by(http://blog.trifork.com/2009/09/08/exploring-the-world-of-android-part-1/)
For a short while now, I am developing for the Android platform, which is a mobile phone operating system developed by Google. The language to use is Java, so at least I didn't have to learn an entirely different new language and I can use the tools I already know and love. I would like to tell you about my 'adventures' as I explore the world of Android
When I first started studying the Dev Guide I soon discovered that the recommended IDE for developing Android applications is Eclipse. Which was a bit disappointing because I don't like Eclipse that much. But fortunately the kind folks of Google left room for other IDE's to develop with. They explain that when you use another IDE you will have to use all kind of command line tools instead, which they provide. Those command line tools allow you to compile your code for Android, run your application in a phone emulator, connect a debugger to your emulator, view application logs and stuff like that. But what they didn't mention, is that if you use Intellij IDEA (which happens to be my favorite IDE) it also provides good support for Android! This makes the use of most provided command line tools superfluous.
Read the rest of this entry »
Cool iPhone / Android WordPress plugin
September 8th, 2009 by(http://blog.trifork.com/2009/09/08/cool-iphone-android-wordpress-plugin/)
We just installed a nice WordPress plugin that displays our blog post in a much more mobile-friendly manner (both visually and in terms of bandwidth). Check it out on your iPhone or Android phone or check out the screenshot if you don't have one. Kudos to Jettro for telling me about this plugin.
You can install the plugin directly from WordPress by searching for: WPtouch iPhone Theme
Read the rest of this entry »


