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(R.id.edittext);
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) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

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

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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