Toasting while iterating through the the cursor is not the best idea. Here's why:
You are using LENGTH_LONG
, and the that means that a toast would last for approx 3 seconds.
Whereas your for loop would probably finish execution in a fraction of a second. So the toast would be displayed in order, but they would transition so slowly that it probably wouldn't make sense.
So i would suggest you to display the content in an alert dialog or the activity itself so the user would be able to make more sense out of the content.
EDIT:
I assume you are executing this on the main thread.
LinearLayout root = (LinearLayout) getActivity().findviewById(R.id.rootLayout);
while(mNotesCursor.moveToNext()){
TextView tv = new TextView(getActivity());
tv.setText(mNotesCursor.getString(mNotesCursor.getColumnIndex("title")));
root.addView(tv);
}