Debugging database
Fri, 03/12/2010 - 02:25 | by gaborWhen I first tried to manage an sqlite database on an adroid device I was not sure about where I fail in it. Can I even insert the records into the database, or I fail only to read the data from it? So I started to search for possibilities to debug the database lifecycle.
The system stores databases in the /data/data/package_name/databases folder by default.
In a command line using the adb (Android Debug Bridge - found in the android sdk tools library) you can access the databases on a running emulator like below:
- adb -s emulator-5554 shell
- sqlite3 /data/data/package_name/databases/database_name
After this you can type normal SQL commands to test the content. For example:
- SELECT * FROM table_name;
This will list the table content (in an ugly format), or say that it does not exists.
Days to Xmas widget tutorial
Mon, 03/08/2010 - 03:17 | by jozsiMy second article based on Norbert Möhring's HelloWidget tutorial, but i think it's easier. :) It will look like this:

How to disable a button on an appwidget?
Wed, 03/03/2010 - 10:18 | by gaborWould you like to disable a button on an appwidget?
As far as I know it can not be done, since the appwiget UI manipulation is limited by the methods of the RemoteViews class.
But if you insist to do that there is a way to make it look like the button were disabled!
RemoteViews can't manipulate a buttons enabled/disabled state, but it can modify its visibility. So the trick is to have two buttons, the real one, and an other which is designed to look like the real one in disabled state, and change witch one is visible.
Lets see a simple example:
We want to have two buttons on the widget, a stop and a start button in order to stop and start some kind of functionality. Once we have started it, we can not start it agin, until we stopped it and vica versa, so we want to disable the button which can not be used right now.
The XML definition of the buttons can be like this:
- <Button android:id="@+id/startbutton" android:text="Start" android:visibility="visible"></Button>
- <Button android:id="@+id/startbutton_disabled" android:text="Start" android:clickable="false" android:textColor="#999999" android:visibility="gone"></Button>
Data Storage tutorial, basic samples are included
Mon, 03/01/2010 - 04:13 | by bence- Data Storage Methods
- Preferences Preferences is a lightweight mechanism to store and retrieve key-value pairs of primitive data types.
- Files You can store your data in files on your mobile phone, or in a removable storage medium.
- Databases Android Api supports SQLite databases. All databases, SQLite and others, are stored on the device in /data/data/package_name/databases.
- Network You can also use the Internet to store and receive data, whether it's an SQLite database, or just a simple textfile.
Introducing the Android Emulator, managing Android Virtual Devices (AVD)
Tue, 02/23/2010 - 16:20 | by gabor
You can create multiple AVDs with different parameters:
My first encounter with an Android (T-Mobile Pulse)
Mon, 02/22/2010 - 12:32 | by bence
![]() |
Recently I had a chance to try out my first Android device. It's called the "T-Mobile Pulse / Huawei U8220 ". Previously I tried an HTC Diamond, which was running on Windows Mobile, both platforms have a very nice UI. |
At first, when the boot-up screen showed up, I thought to myself that these devices are just like PC-s from now on, rather than mobile-phones. Not to speak about those very high DPI values. It is also very comfortable and useful that you can rotate the mobile by 90 degrees both direction, the display is going to be rearranged.
The Pulse has a version 1.5 of Android, and it features aGPS, 3.2mp camera, g-sensor, Wifi, etc...
About Andoid
just take a quick look at this chart...
android (blue) | windows mobile (red) | symbian (orange)
How to set up Eclipse with Android SDK on Ubuntu linux 9.04/9.10 (updated)
Fri, 02/19/2010 - 08:59 | by jozsiIn my first tutorial i will show you how to set up Eclipse 3.5 with Android Development Tools (ADT) on Ubuntu 9.04.
Before we can install the Android SDK, we must install Java. First we open a new terminal window (Applications > Accessories > Terminal).
To install Java, type:
sudo apt-get install sun-java6-bin
If you are on a x86_64 system, you also must install ia32-libs:
sudo apt-get install ia32-libs
For Ubuntu 9.10 users:
Install eclipse from apt-sources, so open a terminal, then:
sudo apt-get install eclipse
Beware! The Droids are coming...
Wed, 02/03/2010 - 05:17 | by gergely
At last I found a companion for my Fallout3 BobbleHead that sits on my desk. He is so lonely, being alone all the time. He was very happy as my kids started to play with him but after a while it did hurt him.
Now he will get some friends. I hope that he won't have any problem with the fact that the friends will be non-biological. In any case they are more friendly then super mutants
Display Android robot in chat
Tue, 01/19/2010 - 07:05 | by akos
If you were ever wondering, how you could see if someone is using Google Talk from an Android device, here is the solution. In your Google Mail web interface go to Settings, select the Labs tab, and turn on the "Green Robot" extension: this will display a robot icon for the users from an Android device, while the coloring indicates the availability of the person.
It really makes sense: your friends can see, that you are logged in from your phone, so they know if you are available and do not answer, this is maybe because you do not have a free hand at the moment.
To be honest, there is still some room for improvements. The robots only appear on the web interface, and not in the Windows standalone chat client. On the other hand if you are an Android device owner, you have to notify every friend of yours, that they should enable this extension if they want to see whether you are sitting in a front of a PC, or you are on the go. This should happen somehow the other way round: you enable that your friends can see if you are on Android, and then everyone should see the Droid icon...
Nexus One from Google
Tue, 01/12/2010 - 09:44 | by akos
The long rumored Google phone is now officially announced, it's name is Nexus One. The hardware is manufactured by HTC, and it contains everything a smartphone of today can have:
- Qualcomm 1 GHz processor
- 512MB Flash, 512MB RAM, Micro SD Card slot
- 3.7-inch AMOLED touchscreen with 800 x 480 pixel resolution
- UMTS Band 1/4/8, HSDPA 7.2Mbps, HSUPA 2Mbps GSM/EDGE, Wi-Fi, Bluetooth 2.1 + EDR, A2DP stereo Bluetooth
- AGPS
- 5 megapixels & LED Flash
- Digital compass, Accelerometer
To operate all the underlying hardvare and to interact with the user Android Mobile Technology Platform 2.1 is in charge.

