Tutorials
How to try out Android 3.0 – Honeycomb!
Jan 27th
Earlier, I wrote a post on how you can try out the new Android Gingerbread (2.3), and now its Honeycombs turn!
This process is very similar to the one regarding the Gingerbread, so I suggest you skim through that post.
You can read more about whats new in Honeycom here. And here is more about the Honeycomb preview SDK itself.
First, we need to open our Android SDK and AVD manager, and install the new Honeycomb packages:
1. Go to Available packages and Select Android SDK Tools and SDK platform Android Honeycomb Preview.
2. When they are downloaded and finished installing, restart your SDK and AVD Manager.
3. Go to Available devices and hit New to create the new AVD for Honeycomb.
4. Give your AVD a nice name, and select Honeycomb (3.0) from the dropdown list. Hit Create AVD.
5. Now select your AVD, and hit start.
Note: It takes some time to start the AVD, and for me, it was a very slow experience navigating around, but it gives a nice introduction to honeycomb.
I took some screenshots from my AVD:
Note: If you are using Eclipse, there is also a new update to the Eclipse ADT (version 9.0.0), so you should update. It seems they have fixed the XML formatting.
My AVD device started up in a horizontal orientation, if yours do that too, you can easily change the orientation of your Emulated device.
Please share this article.
Securely synchronize passwords and other sensitive data via Dropbox and other online storage services
Dec 27th
With all the buzz about LastPass and other services you can use to help managing passwords and login information for all the websites you visit, I wanted to share my way of accomplishing the same.
There are now LastPass plugins for all the major browsers out there, Chrome, FireFox and Opera, and even mobile devices.
Im not saying LastPass is no-good, it looks like a nice piece of software.
But, I don’t want to store my passwords at any 3rd party, even though I know LastPass uses encryption.
My main browser over the last 6-7 years (version 7.something) is Opera. Opera have a feature called Wand which can remember your passwords when you sign in to websites, and it will let you log in automatically by pressing the Login key or Ctrl+Enter.
How to create Gradient Lines with Drawables in Android
Dec 21st
This article will show you how to create simple gradient line separators to spice up the layout a little bit.
We are going to create gradients like these:
About Drawables
First off, we are going to create a drawable. A drawable resource is graphics that can be drawn on the screen,
it can be a couple of different things, here are some examples;
- Bitmaps – png, jpg or gif images
- Nine-Patch image – A png that can be stretched, to create buttons of varying sizes for example
- State List – Making it easier to use different images for button states for example (focused, pressed)
- Shape Drawable
Stretching and Spanning layouts in Android
Dec 20th
When I was working on my BF2Stats Android app, I had to find out how to place 2 widgets/layout elements on the same horizontal line, while keeping them stretched at the same time so they are filling the width of the screen.
It took me a little research before I found a solution, so I will share two methods with you today.
This tutorial will show you how to create layouts that stretches in the width.
In Eclipse I create a new Android Project by going to File -> New -> Other -> Android -> Android Project. The default project just using the main.xml file for these example layouts will do just fine.
We can create a stretching layout with two different methods; Layout Weights and Layout Spans, I will show a simple example of both, and then I will show how to center an element in a TableLayout with Layout Spans.
How to try out the new Android 2.3 – Gingerbread!
Dec 6th
Gingerbread comes with lots of new nice features and improvements, you can read about them here. Or you can watch the official video, to get a quick overview:
Altough testing the OS in an AVD, does not compare to the real device in terms of speed and awesomeness, It is the closest you can get right now.
Getting Android 2.3 up and running on your computer is an easy task, I previously created a very simple-to-follow tutorial how to get started with Android development. Installing Android 2.3 is much the same thing, so I assume you are coming from that guide, or already has a development environment set up.
Here is what we need to do:
Getting Started With Android – Setting Up The Development Environment
Nov 26th
The reason for using Eclipse is because there exists an Android development plug-in for Eclipse, which makes things easier for us developers. Also, Eclipse is a good and Open Source IDE. Eclipse can also be used for other languages such as PHP, C++ and Ruby, it also has a very good Subversion plug-in for using repositories.
Developing Android applications, and using these tools described here, does not cost you anything.









