Android SDK Documentation Errors

During the span of my project, I came across few errors in the documentation of the Android SDK. I’ve listed them out along with their corrections.

Documentation for HelloFormStuff

final EditText edittext = (EditText) findViewById(;
edittext.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
….. ….. ….. …..
(in the documentation only OnKeyListener is given instead of View.OnKeyListener)

Documentation for HelloTabWidget

public void onCreate(Bundle savedInstanceState) {

mTabHost = getTabHost(); —————->>>>> (should be TabHost mTabHost …..)

mTabHost.addTab(mTabHost.newTabSpec(“tab_test1”).setIndicator(“TAB 1”).setContent(;
….. ….. ….. ….. ……

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s