Category Archive: Programming

Jun 25

Android 1.5 NDK Released!

Finally Google Released the NDK, which allows developers to use native code/libraries in their code (programmed in C or C++) which can be used for intense CPU operations such as encoding/decoding or physics. You can download it here. For most Developers this isn’t much interesting, but if you need advanced stuff as implementing your own …

Continue reading »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/06/25/android-1-5-ndk-released/

Feb 27

SavedState: Preserve data when your Activity is recreated – Part 1

Certain events (like low on memory, or configuration change) can lead that your Android application is killed and possibly important data is lost when it’s recreated again. To prevent this, you need to temoprary preserve your important data in SavedStates (onSavedInstanceState and onRestoreInstanceState) and load it when the application is recreated to prevent losing critical data necessary for your application

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/02/27/savedstate-preserve-data-when-application-is-recreated/

Feb 17

How to implement your own Listener in Android/Java

When you’re developing application, there is often a need to create your own controls/widgets/classes or to extend already available ones. And in most cases, you want this control/widget to be as flexible as possible. In order to achieve this, you have to create special events, which can be handled outside of your widget. Some of …

Continue reading »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/02/17/how-implement-your-own-listener-android-java/

Feb 14

Implementing Listeners in your Android/Java application

I’ve seen many people asking how to implement Listeners in their applications. Implementing a Listener is quite easy. There are 3 ways to implement an Listener and the have their advantages and disadvantages.

The tree way to implement Listeners are

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/

Jan 30

Android: Creating XML UIs

In the last article, Android: Your first Android Application, we created a simple login screen, but didn’t had time to go in deeper in the UI XML structure. In this article I will explain the basics of creating an UI via XML resource. I’ll use the XML file from previous example here.

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/01/30/android-creating-xml-uis/

Jan 29

A sad day for Handsets: Apple awarded with Multi-Touch patent

A few days ago, Apple was awarded with the patent #7,479,949, titled "Touch screen device, method, and graphical user interface for determining commands by applying heuristics". In other words, this means that there won’t be any handsets with Multi-Touch devices out of there other than Apple devices, at least in the U.S. This is especially …

Continue reading »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/01/29/a-sad-day-for-handsets-apple-awarded-with-multi-touch-patent/

Jan 29

Android: Your first Android Application

Update: Small update for all of you who are not using Eclipse to develop their application, check out this Tutorial on how to compile Android Application without IDE.

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/01/29/android-your-first-android-application/

Jan 02

Android: Installing the SDK

Before getting started, you first need to download and install the Android SDK. But first, if you meet the requirements. In order to use the Android SDK, you need to have JDK 5 or JDK 6 installed on your system (JRE alone won’t do it!). Next you’ll need an IDE (it’s optional, but makes developing …

Continue reading »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/01/02/android-installing-the-sdk/

Dec 17

Android: Introduction

On October 22, 2008 the first Android capable handset was released, the T-Mobile G1. You may now ask yourself "What is Android?". Android is an open source  framework designed for handsets and developed by Google, similar to Apples iPhone. It includes an operating system, middleware and key applications.

Continue reading »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2008/12/17/android-introduction/