当前位置: 首页>>代码示例>>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;未经允许,请勿转载。