[android-developers] Content Provider General Questions For a Newbie

2010-03-01 Thread Hunk of Hulk
Hi there, I am having a hard time understanding content providers. In the notepad example and others, the content provider never even declares its CONTENT_URI anywhere inside itself, yet the docs say to publicly declare this. It's declared in a different class. So when an activity queries a

[android-developers] Can someone explain putExtra()?

2010-02-27 Thread Hunk of Hulk
i.putExtra(NotesDbAdapter.KEY_BODY, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY))); Hi, I don't understand this code line from the notepad tutorial. What is the second parameter c.getString(). doing here? Is it getting the column index of the string body? In the

[android-developers] Notepad tutorial questions about calling super

2010-02-26 Thread Hunk of Hulk
Hi there, I find the Notepad tutorial to be anything but simple for me. Could someone tell me in the code below why you call super immediately in method 1 and then last in method 2? I had thought that if you're going to call super,you had to do it immediately (or is that only with a