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 audio and video codec, you may want to try it out.

Source: Android Developers Blog

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

Mar 09

Android sales will outstrip iPhone by 2012

Market researcher at Informa Telecoms & Media predicted in a new report that Android sales will outstrip iPhone by the year 2012.

While the first iPhone devices hit the market in June 2007, Apples latest iPhone 3G hit the stores last July, only a few months before Google released the new Android open source OS platform and the first device supporting it the T-Mobile G1.

CNet also reports

However, London-based Informa believes Symbian’s switch to open source will help the Symbian Foundation maintain its leadership over Android, Linux, and Microsoft over the next few years.

Nearly 162 million smartphones were sold last year, surpassing laptop sales for the first time, according to Informa. The market researcher forecasts that smartphone penetration will reach 13.5 percent of new handsets sold this year and that the figure will reach 38 percent by 2013.

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/03/09/android-sales-outstrip-iphone-year-2012/

Feb 28

Android Market DRM not safe!

It’s quite a bit old of a news, but maybe some haven’t heard it yet. The android market DRM (Digital-Right-Management) isn’t save anymore. With a simple hack, it’s possible to copy protected software as well as paid applications.

This is an very serious issue, as it’s possible to buy an application, “backup” it and then request a refund, basically getting the application for free.

It’s said, that this is one of the reasons why the Android 1.1 Framework is not available yet outside of the USA.

It’s really scary how easy the system can be circumvented! There is basically no protection at all. All “protected” applications are simply stored in an hidden folder which can’t be normally accessed (only be the OS), but if you have an hacked/jailbreaked firmware on your G1 or an Dev G1, you have root access which allows you to access this hidden directory and copy/move the applications inside there.

All protected applications are stored inside the /data/app-private folder (which is normally invisible, unless you have root access).

Thanks to Tim over there at strazzere.com for finding this out and making people aware of it! Check out his Android Market DRM busted < 12 hours! post for more details about the very weak DRM protection of the Android Market!

If you’re an developer who offers paid applications, my suggestion would be to pull of your application from the Android Market, until the issues were address by Google, as this could seriously hurt your business!

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/02/28/android-market-drm-not-safe/

Feb 28

Android Market: Developers worried about bad sales

A while ago, Android Market opened for paid sales. While this finally opens opportunities for Android developer to get some money for their efforts, there are some serious problems currently.

One reason for this is bad performance and downloading problems, as well as problems with the copy protection features as you can read in the official Android Developers Google Groups. There are actually reports, that the copy protection feature can corrupt the APK files which will cause Exception when the application is launched. You can find this and other concerns of developers in the “Think twice before turning on the Copy Protection" option!” discussion on the Android Developers group.

It seems, that this is especially the case if users are installing a copy protected version of your application over an old non-protected application.

The another reasons developers worry, is about the slow/low sales of their paid applications. One of such worried developers is “Ed Burnette”, author of of “Hello, Android”.

Read the rest of this entry »

Permanent link to this article: http://tseng-blog.nge-web.net/blog/2009/02/28/android-market-developers-worried-about-bad-sales/

Feb 27

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

One difference to between conventional programming and Android development is that the Android OS can at any time kill your Activity if it runs low on resources or in certain other conditions like configuration changes.

This can be very critical when it comes to data. On such an event, there is a possibility that data loss will occur and as programmer you want to avoid that under any circumstances.

Most of the standard widgets like EditText already preserve their state under certain circumstances. By default widgets/UI elements with an android:id attribute defined, will by default preserve their states when the application is destroyed and recreated.

But what if the you need to preserve data defined inside of your Activity or your own widgets?

Read the rest of this entry »

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 the popular examples are OnClickListener and OnKeyListener. But sometimes you need Events/Listener which aren’t predefined by the Java or Android SDK. In this case, you have to create your own Listener interface. In the last post, I’ve shown three different way on how to implement Listeners in your application. Now I’ll show you how to implement your own Listeners. Read the rest of this entry »

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

  • Inline Implementation
  • Using the implements keyword
  • By using variables

We’ll use our good old LoginExample application, created in previous tutorial which can be found at Android: Your first Android Application.

Read the rest of this entry »

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.

Read the rest of this entry »

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 also a bad day for Google and their Android OS, as it was one of the most promising competitors to Apples iPhone on the handset market.

The patent is a long and detailed description of the technology and was filled on April 11, 2008:

A computer-implemented method for use in conjunction with a computing device with a touch screen display comprises: detecting one or more finger contacts with the touch screen display, applying one or more heuristics to the one or more finger contacts to determine a command for the device, and processing the command. The one or more heuristics comprise: a heuristic for determining that the one or more finger contacts correspond to a one-dimensional vertical screen scrolling command, a heuristic for determining that the one or more finger contacts correspond to a two-dimensional screen translation command, and a heuristic for determining that the one or more finger contacts correspond to a command to transition from displaying a respective item in a set of items to displaying a next item in the set of items.

This can also mean the end of the Palm Pre which supports swiping and pinching.

Originally at World of Apple.

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

So, you finally want to make you first Android Applications. But don’t be scared, we won’t start with the "Hello, World!" application usually used to introduce you into a programming language, but will start with something more useful: A login screen.

If you haven’t setup the SDK & Eclipse yet, you should first read my previous "Android: Installing the SDK" post and then come back.

All of the guides and examples are written with the Eclipse IDE. If you’re using another IDE, you have to check for appropriate menu/shortcut/etc options in your IDE.

First we create a new project by selecting the File menu -> New -> Android Project or right-clicking the Package Explorer -> New -> Android Project.

Read the rest of this entry »

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

Older posts «