In November, we announced that we were the first phone manufacturer in the world to support WebGL in the native Android web browser on Xperia™ phones. As a next step, we are now very excited to release our WebGL implementation for our coming Xperia™ phones running Android™ 4.0 (Ice Cream Sandwich) and above as open source. Read more after the jump, as Anders Edenbrandt, Senior Software Architect, explains more!

Anders Edenbrandt
Anders Edenbrandt, Senior Software Architect.

Since we announced that we had added support for WebGL in our Android 2.3 (Gingerbread) phones, we have received a lot of feedback from the community. Most of the feedback has been very encouraging, but we have also received comments saying that WebGL needs to get a wider deployment within the Android ecosystem, for the market to take off. This is something we completely agree with.

As a way of encouraging this, and in line with our continuous support of the open developer community and open standards like WebGL and HTML 5, as well as our ambition to be transparent, we have decided to publish our implementation of WebGL for Android 4.0 as open source. This way, it’s free for anyone who is interested in using it as is, but it’s of course also there as a base for anyone who would like to contribute in further development of the code.

The reason for publishing the implementation of WebGL for Android 4.0, and not the solution we used for our Android 2.3 phones, is that the WebKit code for Android 4.0 is much more recent, and therefore the required modifications are more manageable.

What is required to enable support for WebGL in Android 4.0?
We have published the code to enable support for WebGL in Android 4.0 on the Sony Ericsson Dev Github. You don’t need any particular access rights to download the source code, but you must be a fairly advanced developer. To make use of the code, you must be able to build your own Android™ operating system. The code consists of the following files:

  • Patched WebKit files to enable WebGL with the hardware accelerated compositing enabled.
  • New files that implements the binding between the WebKit and OpenGL on Android.

To enable WebGL, the changes must be applied to the WebKit component in the Android ICS-MR1 release. Right now the code only supports Android 4.0. Please note the work on the code is still in progress, and you can expect changes in the code base until we have launched our first commercial Android 4.0 software for our Xperia™ phones.

We hope to see a lot of interest in this, and many contributions as well. If you would like to contribute to the work with the code, or if you have any questions or comments, feel free to get go to our WebGL thread on the XDA Forum. If you have any direct comments or questions on this post, drop us a line below!

More information:

 

Sort by

  • [...] As part of our continuing efforts towards openness and knowledge sharing, we are now stepping up our open source activities. For a long time, we have been one of the major contributors to the Android Open Source Project. We’ve also been active in the open developer community where we most notably published an ICS alpha release a couple of months ago. And now, we’re excited to release a couple of new open source projects that are available on our GitHub. As you can see below, we have just now released two very interesting projects as open source: the analysis tool ChkBugReport, and our WebGL implementation for Android™ 4.0. [...]

    Hot debate. What do you think? Thumb up 10 Thumb down 1

  • [...] our coming Xperia™ phones running Android™ 4.0 (Ice Cream Sandwich) and above as open source. Read more after the jump, as Anders Edenbrandt, Senior Software Architect, explains more! Bookmark on [...]

    Thumb up 0 Thumb down 1

  • [...] Sony Ericsson has explained all the requirements for enabling support for WebGL in Android 4.0. If you’re interested, take a look at their blog post. [...]

    Thumb up 2 Thumb down 0

  • [...] open source. January 25, Sony Ericsson senior software architect Anders Edenbrandt in the developer channel's website gave a detailed [...]

    Thumb up 1 Thumb down 0

  • By Sunil Simon
    31st January 2012.
    03:16

    Innovation is difficult but what matters most to a customer is the care you provide. Sony Ericsson looks to have some ethical problem in their customer service. They stopped providing upgrades to a host of their products (technologic blunders) (just looks to be in greed). I use Sony X-peria X10 mini pro which is a cute phone. But it can`t load anything more than the basic application. Even if you download Google+, the phone storage gets full and it can`t perform the basic function. They just stopped the update support. This happened to me within 6 months of buying the product. Set your basics right before thinking of development. A real shame….

    Thumb up 2 Thumb down 3