Hello, All, and thank you for providing these great forums!
I'm new to Java and picked up the book "Pro Android 3" by Komatineni, MacLean, and Hashimi the other day.
So, while going through it, I ran across this part [page 45]:
My problem is that I can't find that code in any file or folder showing up in Eclipse's "Project Explorer"/"Navigator." (I'm using Eclipse "Version: Indigo Service Release 2 -- Build id: 20120216-1857" by the way.)The application's root package name is defined as an attribute of the <manifest> element in the AndroidManifest.xml file, and each activity has a name attribute.
Once the entry-point activity is determined, the host starts the activity and the onCreate() method is called. Let's have a look at NotesList.onCreate(), shown in listing 2-2.
public class NotesList extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT); Intent intent = getIntent(); if (intent.getData() == null) { intent.setData(Notes.CONTENT_URI); } getListView().setOnCreateContextMenuListener(this); // rest of code listed in the book left out for brevity
Can somebody please point me in the right direction?