I am trying to write a simple app just to display on screen the results on a sql query.
public class ContactLookup extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null
);
}
}
How exactly do I print the results of the cursor? Everything I find goes into to way more detail then I need at the moment... I just want to know how to get that variable printed on screen.