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:
- gettextview()
- 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
Post a Comment