Esempio n. 1
0
 @Override
 public void onListItemClick(ListView l, View v, int position, long id) {
   Cursor cursor = mAdapter.getCursor();
   String uid = cursor.getString(cursor.getColumnIndex(UID));
   // go to zhihu.com
   Utils.viewUserInfo(getActivity(), uid);
 }
Esempio n. 2
0
 @Override
 public Loader<Cursor> onCreateLoader(int id, Bundle args) {
   Uri uri = Utils.parseUri(ITEMS);
   return new CursorLoader(getActivity(), uri, USER_PROJECTION, null, null, DESC_ORDER);
 }