Fancy time and date picker

SDK Version: 

The other day we needed a fancier than the factory default date and time picker, so I looked around the net, what other options are out there.

default datepicker

How to build with Android NDK

SDK Version: 
The Android NDK is a companion tool to the Android SDK that lets you build performance-critical portions of your apps in native code. If you write native code, your applications are still packaged into an .apk file and they still run inside of a virtual machine on the device. The fundamental Android application model does not change.
First thing to do:
Go to and download Android NDK.
Okay, now you unzip the downloaded NDK zip to your hard disk drive.

If you are a windows user, you also have to have Cygwin, go to and download the latest version.
Install it, and run it, you should see a "linux-like" console.

Communicating between an activity and the browser - callback

SDK Version: 

A few days ago Gabor made an article about communicating between activites. I'm currently working on a pet project that uses Oauth with the google data api, where I had to get a response from the browser, so let's take a look at communicating between an activity and a browser.

Parsing UTF-8 encoded content correctly from SQL through Php with Json

SDK Version: 

To get this thing working, just follow these steps:

1. First thing to do is changing the default character set of your SQL database and its tables to UTF-8.

2. Your Php file should look something like this:

  1.   $connection = mysql_connect("server_ip_address", "user", "password");
  3.   if (!$connection) die("Couldn't connect to server");
  4.   mysql_select_db("database_name", $connection) or die("Could'nt select the database!");
  6.   // This is very IMPORTANT!!!
  7.   mysql_query("SET NAMES 'UTF8'");  
  9.   $sth = mysql_query($query);
  10.   $rows = array();
  11.   while($r = mysql_fetch_assoc($sth)) {
  12.       $rows[] = $r;
  13.   }
  14.   print json_encode($rows);
  16.   mysql_close($connection);  
  17. }

3. Now you can parse these json forrmatted strings, to your application. Here's how:

Root your phone without using an usb cable

SDK Version: 

A few weeks ago ztomi had a tutorial about ADB wireless. You propably already have your favourite way of rooting your phone (superoneclick etc), but what if you don't want or can't use the usb port of your phone?

How to create android applications for tablets?

SDK Version: 

With the new 2.3 SDK, we get the opportunity to develop android for tablets. (At least, with the Galaxy Tab Addon).

When starting a new tablet emulator, first we need to set the "Scale display to real size" option. This helps to set the tablet's size, to our screen size. In my case, it's 1440x900px.


Xml remote procedure calls on android

SDK Version: 

Using web services on android phones, is pretty simple. For most popular services, there is a usable library available.
Here is a little snippet for using an android library, called android-xmlrpc.

Date handling in Android development

SDK Version: 

This unusual topic came around quite a few times in the last couple of days, first with our own rss parser, and today with android-xmlrpc.
In our rss parser, we wanted to have as much flexibility as possible, so we could use many types of localized rss pages, that have different date formats.

Using ksoap2 for android, and parsing output data

SDK Version: 

So the other day, I was asked to check out how we could use soap on Android, preferably with ksoap2 for android, and a public SOAP Web Service. For the latter the TopGoalScorers web service was chosen.

Syndicate content