本文整理匯總了Java中android.app.ListActivity.managedQuery方法的典型用法代碼示例。如果您正苦於以下問題:Java ListActivity.managedQuery方法的具體用法?Java ListActivity.managedQuery怎麽用?Java ListActivity.managedQuery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.app.ListActivity
的用法示例。
在下文中一共展示了ListActivity.managedQuery方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LocationCursorAdapter
import android.app.ListActivity; //導入方法依賴的package包/類
/**
*
* @param activity
* {@link ListActivity} that uses this CursorAdapter
* @param uri
* {@link Uri} of the {@link Location}s to be displayed
*/
public LocationCursorAdapter(ListActivity activity, Uri uri) {
super(activity, R.layout.list_row, activity.managedQuery(uri, null,
null, null, null),
new String[]{RedpinContract.Location.SYMBOLIC_ID},
new int[]{R.id.list_row_label});
this.activity = activity;
this.uri = uri;
setStringConversionColumn(getCursor().getColumnIndex(
RedpinContract.Location.SYMBOLIC_ID));
}
示例2: MapCursorAdapter
import android.app.ListActivity; //導入方法依賴的package包/類
/**
*
* @param activity
* {@link ListActivity} that uses this CursorAdapter
* @param uri
* {@link Uri} of the {@link Map}s to be displayed
*/
public MapCursorAdapter(ListActivity activity, Uri uri) {
super(activity, R.layout.list_row, activity.managedQuery(uri, null,
null, null, null), new String[]{RedpinContract.Map.NAME},
new int[]{R.id.list_row_label});
this.activity = activity;
this.uri = uri;
setStringConversionColumn(getCursor().getColumnIndex(
RedpinContract.Map.NAME));
}
示例3: LocationCursorAdapter
import android.app.ListActivity; //導入方法依賴的package包/類
/**
*
* @param activity
* {@link ListActivity} that uses this CursorAdapter
* @param uri
* {@link Uri} of the {@link Location}s to be displayed
*/
public LocationCursorAdapter(ListActivity activity, Uri uri) {
super(activity, R.layout.list_row, activity.managedQuery(uri, null,
null, null, null),
new String[] { RedpinContract.Location.SYMBOLIC_ID },
new int[] { R.id.list_row_label });
this.activity = activity;
this.uri = uri;
setStringConversionColumn(getCursor().getColumnIndex(
RedpinContract.Location.SYMBOLIC_ID));
}
示例4: MapCursorAdapter
import android.app.ListActivity; //導入方法依賴的package包/類
/**
*
* @param activity
* {@link ListActivity} that uses this CursorAdapter
* @param uri
* {@link Uri} of the {@link Map}s to be displayed
*/
public MapCursorAdapter(ListActivity activity, Uri uri) {
super(activity, R.layout.list_row, activity.managedQuery(uri, null,
null, null, null), new String[] { RedpinContract.Map.NAME },
new int[] { R.id.list_row_label });
this.activity = activity;
this.uri = uri;
setStringConversionColumn(getCursor().getColumnIndex(
RedpinContract.Map.NAME));
}