Pro Android 2: What are getTextView() and registerMenu()? -


listing 3-33 in acclaimed pro android 2 book (source code can found here) references 2 functions of definitions haven't been able find in either android sdk or all listings in book itself:

  1. gettextview()
  2. registermenu()

what these functions , can found?

public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);          textview tv = new textview(this);         tv.settext("helloe, android. hello");         setcontentview(tv);         registerforcontextmenu(tv); } 

will fix problem of methods not existing.

and no book have read on android without typos, missing bits etc.

ps. menu menu shows when press down on 'textview'.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -