Archive for February, 2008

Google Releases New SDK

Google launched Android in November along with and the Open Handset Alliance, a consortium of 34 handset manufacturers, carriers and chipmakers that have said they plan to support Android products and services. Products are due out later this year.

Source: CNet News

Google released a new version of the software developer kit for its Android mobile open development platform on Wednesday.The new SDK has a new user interface, a geocoder that lets developers search for businesses as well as translate an address into a coordinate and vice versa, support for new media codecs, and code that lets developers create layout animations.

One thing missing is change to the telephony package, laments one developer on the Android Developer discussion on Google Groups.

“This is very disappointing, especially because we were told in the Android coding day in Israel that the telephony package will be updated soon,” the developer wrote. “We still cannot detect the ingoing/outgoing call number or send DTMF tones properly.” Prototypes of Android phones were shown at the GSMA Mobile World Congress in Barcelona on Monday.

Android Software Debuts in Barcelona

As many as one dozen handset makers and chip companies are expected next week to unveil mobile phone prototypes designed to operate with Google Inc.’s (GOOG) new Android software platform, a source familiar with the situation said Friday.

One analyst said the number companies preparing to show off their wares at the GSMA Mobile World Congress in Barcelona amounts to “a small but symbolic step” forward for the Internet search and advertising giant, which has set it sights on the nascent but potentially lucrative mobile ad market.

“Having prototypes is a signal, but not a promise, that the phones will be out there,” said Bill Hughes, analyst at In-Stat consultancy.

Hughes said the success of Google’s effort to develop a next-generation mobile phone will largely depend on convincing independent developers - whom Google is counting on to add all the bells and whistles to its mobile phone software - that there will be a broad market for their applications.

Without evidence that the Android project has momentum, developers will be unlikely to spend time designing applications for Google’s mobile software.

Google is hoping its mobile phone initiative will one day enable wireless subscribers to easily surf the Internet without restrictions - and allow advertisers to reach consumers through their handsets.

Google declined to comment on a recent report that it planned show off a prototype of its own so-called “Gphone” next week, but a spokesman noted the company has been working with a number of partners to develop handset prototypes.

“We’re very excited about the momentum building behind the platform as demonstrated by the number of companies that are supporting it with their technology,” the spokesman said.

One prototype will belong to ARM Holdings PLC (ARM), a British company that develops architectural designs for chips and sells them to semiconductor manufacturers such Texas Instruments Inc. (TXN), NEC Corp. (6701.TO) and Samsung Electronics Co. (005930.SE).

Image & Text-Only Buttons (UPDATED)

Android Tutorial #4.1: Image & Text-Only Buttons (UPDATED)

This very simple tutorial will add to your Android UI (user interface) development arsenal. How? Buttons that display as simple text or as images are basic elements of any application. By following the two steps below, these buttons can be easily created with Google’s Android by simply extending the current Button and ImageButton classes.

We will create these two new Button extensions as shown:

Text and Image Buttons

Step 1: Set Background to ‘null’ in XML or code

The recommended technique is to use the ‘empty’ drawable variable in your ImageButton or TextButton’s XML to set your background to null:

android:background=”@android:drawable/empty”

An optional technique is to extend ImageButton or TextButton and to set the background to null in the constuctor. As above, this is not the recommended approach but may be useful at times:

public YourButtonExtension() {

setBackground(null);

}

And that’s it, only your image or text will display but will have button functionality…except for visually displaying focus. Let’s address that next.

Step 2: Handle onFocus() by overriding onDraw()

We listen for the focus event and update the Button’s text color or button image that way as well. But we’ll do it this way for now.

public void onDraw(Canvas canvas) {

// Since this Button now has no background. We must set the text color to indicate focus.
if (isFocused()) {

// Set the focused text color. In the case of ImageOnlyButton we would .
// instead do setImageResource(imageResourceFocused);
setTextColor(focusedTextColor);

} else {

// Set the non-focused text color. In the case of ImageOnlyButton we would .
// instead do setImageResource(imageResourceNotFocused);
setTextColor(notFocusedTextColor);

}

super.onDraw(canvas);

}

You might be wondering where those text color and image variables come from. We will obtain these focused & not-focused images or text colors from variables passed in from the XML resource file as you’ll see by reading the source code. I won’t go into how that happens here. Instead, I’ll keep this tutorial simple and point you to my next tutorial where I will discuss how to create & pass such custom variables.

And That’s It

You can download the source to see for yourself.

Latest On Google Android From MWC’08

One of the potentially hottest and most important upcoming technologies posing a challenge to Microsoft’s Windows Mobile is Google’s Android operating system.Google, along with the “Open Handset Alliance,” announced in November the upcoming platform, and that many of the largest handset manufacturers and most important cellular service providers in the world are supporting it.

Although nowhere near as polished as the offerings from Sony Ericsson, Samsung and the rest, a number of Android prototypes and reference designs are on show here at the Mobile World Congress. Android is different from most existing smartphone platforms such as Windows Mobile and Palm OS because it’s “open source,” meaning the code is being made freely available to anyone interested in seeing it in a completely transparent way.

As a result, third party software developers and handset manufacturers have tremendous flexibility in writing add-on applications and creating enhancements to it. In some instances, users won’t even be able to distinguish between native and third party programs as a result.There is good reason to expect the platform to take marketshare. Besides being supported by the multi-hundred billion dollar powerhouse Google, the Open Handset Alliance includes multi-billion dollar powerhouses such as HTC, Motorola, LG and Samsung. In the United States, Sprint and T-Mobile will offer Android devices. An early look at the Android SDK was released in November, and Google announced $10 million in prizes for the best third party software applications developed for it.

[Via Linux and Open Source Blog]