當前位置: 首頁>>代碼示例>>Java>>正文


Java ListActivity.managedQuery方法代碼示例

本文整理匯總了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));
}
 
開發者ID:MaKeAppDev,項目名稱:Redpin,代碼行數:20,代碼來源:LocationCursorAdapter.java

示例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));

}
 
開發者ID:MaKeAppDev,項目名稱:Redpin,代碼行數:20,代碼來源:MapCursorAdapter.java

示例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));
}
 
開發者ID:BenjaminMesre,項目名稱:UPMCarte,代碼行數:20,代碼來源:LocationCursorAdapter.java

示例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));

}
 
開發者ID:BenjaminMesre,項目名稱:UPMCarte,代碼行數:20,代碼來源:MapCursorAdapter.java


注:本文中的android.app.ListActivity.managedQuery方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。