public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Helloe, Android. Say Hello"); setContentView(tv); registerForContextMenu(tv); }
fix the problem of those methods that do not exist.
And not a single book that I read on Android has typos, missing bits, etc.
PS. The menu will be the menu that appears when you click on "TextView."
source share