Blog
Learn Android Development from the Pros
Sometimes it is difficult to get beyond the basics of Android development. Although there are books, tutorials, and documentation for advanced Android development, it is often easier to learn such things from experienced developers who have been working professionally on different projects.
Read More ( comments)Android Game Development
I have recently been looking into some Android game development, but with a very limited knowledge obout game development, I did not know how an Android game should be structured. I started looking around for information, and in this blog post I will share them with you.
Read More (2 comments)Making your app tablet-friendly in 3 steps
The Android tablets are here, and so are the non-tablet-optimised applications. To ensure that tablet users have a good experience using your app, a few optimisations are necessary to make it feel native. The three most important of these are described in this article, all with backward compatibility using the official Android compatibility library.
This article will focus on optimising for the the Android 3.0+ Honeycomb tablets, even though there are a some tablets out there with a firmware version below 3.0. I expect you to have some basic knowledge about Android development.
Throughout this article we will develop a tablet friendly recipe application with backward-compatibility and phone support.
Read More (3 comments)Kaloer Clock 3.0 released
During the latest moths we have been busy working on improvements in our night clock application for Android Kaloer Clock. Yesterday we released Kaloer Clock 3.0 on the Android Market, which contains multiple improvements and new features.
Read More (56 comments)Presenting Balance and Budget
We are happy to announce our new Android application Balance and Budget. The application makes balance and budget management easy, simple, and fast, and it does an excellent job of giving you an overview of your different accounts.
Read More (2 comments)Android File Picker Activity
As a part of a new application, which we are working on, we have developed and published a file picker activity for android. The file picker can be used when the user has to select a file on the file system.
Read More (4 comments)Android Plurals
A useful, but sadly rarely used string resource is plurals. Plurals are used for words or phrases which are spelled differently in the singular and the plural.
Read More (9 comments)Permissions in Kaloer Clock
Android application security has recently become a focus of interest when talking about Android. A chinese developer accused of stealing private data from the users.
Because of this, people are getting more focused on application permissions when installing apps from the Android Market - and with good reason.
Android Preferences
Preferences are an important part of an Android application. It is important to let the users have the choice to modify and personalize their application depending on their needs.
In the screenshots "custom" is spelled "costum". The typo is fixed in the code examples.
Android preferences can be set in two ways. You can create a preferences.xml file in the res/xml directory, or you can set the preferences from code.
The first example shows a preferences.xml file. Every preference needs to have a android:key value, that we call to get the preference's value. The android:title is the preference's title, and the android:summary is a summary about the preference. The android:defaultValue is the default value of the preference - fx. true or false.
Currently there are 5 different preference views:
- The CheckBoxPreference is a simple checkbox, that can return true or false.
- The ListPreference, which shows a radioGroup where only 1 item can be selected a time. The android:entries links to an array in the res/values/arrays, and the android:entryValues is an other array with the items to be returned.
- The EditTextPreference shows a dialog with an editText view. This returns a String.
- The RingtonePreference shows a radioGroup that shows the ringtones.
- The Preference is a custom preference. This works like a Button.
- The PreferenceScreen is a screen with preferences. When you have a PreferenceScreen inside an other PreferenceScreen, it simply opens a new screen with other preferences.
- The PreferenceCategory is a category with preferences.
Incoming SMS Messages
During the development of version 1.3 of Kaloer Clock, I wanted to show an icon when a new sms message was received. This was not the biggest problem, though. If the sms message was read, the icon should be invisible. Therefore, it was necessary to check the sms messages in the inbox using a URI.
The following guide shows how I did this.
Read More (3 comments)Popular blog posts
-
Android Preferences
Preferences are an important part of an Android application. It is important to let the users have the choice to modify...
-
Incoming SMS Messages
During the development of version 1.3 of Kaloer Clock, I wanted to show an icon when a new sms message was received....
-
Permissions in Kaloer Clock
Android application security has recently become a focus of interest when talking about Android. A chinese developer...
-
Android Plurals
A useful, but sadly rarely used string resource is plurals. Plurals are used for words or phrases which are spelled...