Want to make great Android games, but you're not a Java programmer? This talk is for you. Android supports a toolchain for building applications in C/C++. In December 2010 it got a makeover specifically aimed at making life better for game developers. This presentation gives an introduction to Android programming in C/C++, covers what's new and improved since last year, and shows best practices for building and debugging games with the NDK.

Friday, June 10, 2011

If you have been developing Android applications and are interested in building your applications for Windows Phone 7, this guide is for you.The guide will cover what you need to know to add Windows Phone 7 development to your skill set, while leveraging what you have already learned building Android applications.

Update AndroidSQLite.java, modify listContentOnItemClickListener to change the dialogC1_id and dialogC1_id to final EditText, and also add button to update SQLite database with mySQLiteAdapter.update_byID().

Gesture Search from Google Labs now has an API. You can use the API to easily integrate Gesture Search into your Android apps, so your users can gesture to write text and search for application-specific data.

The Official Google Code Blog have a post, Add Gesture Search to your Android apps, demonstrate how we can embed Gesture Search (1.4.0 or later) into an Android app that enables a user to find information about a specific country.

ADT 11 focuses on editor improvements. First, it offers several new visual refactoring operations, such as “Extract Include” and “Extract Style,” which help automatically extract duplicated layout fragments and style attributes into reusable layouts, styles, and themes.

Second, the visual layout editor now supports fragments, palette configurations, and improved support for custom views.

Last, XML editing has been improved with new quick fixes, code completion in more file types and many “go to declaration” enhancements.

ADT 11 packs a long list of new features and enhancements. Visit our ADT page for more details.

Sunday, June 5, 2011

java.net.InetAddress is a class of an Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in practice you'll have an instance of either Inet4Address or Inet6Address (this class cannot be instantiated directly). Most code does not need to distinguish between the two families, and should use InetAddress.

An InetAddress may have a hostname (accessible via getHostName), but may not, depending on how the InetAddress was created.

In this exercise, we are going to get all IP addresses associated with a host, by calling the function getAllByName().

<!– BEGIN WORLD IPv6 DAY TEST FLIGHT BADGE: BLUE: 128px –>
<!– END WORLD IPv6 DAY TEST FLIGHT BADGE: BLUE: 128px –>On 8 June, 2011, Google, Facebook, Yahoo!, Akamai and Limelight Networks will be amongst some of the major organisations that will offer their content over IPv6 for a 24-hour “test flight”. The goal of the Test Flight Day is to motivate organizations across the industry – Internet service providers, hardware makers, operating system vendors and web companies – to prepare their services for IPv6 to ensure a successful transition as IPv4 addresses run out.

Thursday, June 2, 2011

HTCdev will be a comprehensive resource for developers that will provide the core tools you need to develop your ideas specifically on HTC devices, including access to HTC OpenSense SDK, support, education, and enhanced services that will enable you to build, publish and promote your ideas. HTCdev will be a constantly evolving platform and we intend to use your feedback to add new features and tools in the future. This is the start of a conversation and of a collaboration. Where it goes from here is only limited by your imagination.

The HTC OpenSense SDK will allow developers to harness software and hardware innovations on HTC phones to develop more deeply integrated mobile apps and experiences. Altogether, you'll have access to documentation, sample code, APIs and more importantly, the support and inspiration of the HTCdev community.

Because we use SimpleCursorAdapter to exposes data from a Cursor to a ListView widget. It's a subclass of android.widget.CursorAdapter. The Cursor must include a column named "_id" or this class will not work - refer to Android doc CursorAdapter.

So, we must:
- include column "_id" in database.
- include it in the queue.

Otherwise "java.lang.IllegalArgumentException: column '_id' does not exist" will be thrown!

Wednesday, June 1, 2011

It's a simple example using Android's SQLite database. A adapter, SQLiteAdapter, is implement as a adapter between our activity and SQLite, with a inner class SQLiteHelper which extends SQLiteOpenHelper.

The SQLite database have only one field, "Content". When the app start, it will open the database and delete all first, then insert some dummy data, then close it. And Re-open, read all content.