Java ListActivity.managedQuery方法代码示例(javalistactivity.managedquery典型用法代码示例汇总)

本文整理汇总了Java中android.app.ListActivity.managedQuery方法的典型用法代码示例。如果您正苦于以下问题:Java ListActivity.managedQuery方法的具体用法?Java ListActivity.managedQuery怎么用?Java ListActivity.managedQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.app.ListActivity的用法示例。


Java ListActivity.managedQuery方法代码示例(javalistactivity.managedquery典型用法代码示例汇总)

在下文中一共展示了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

本文标签属性:

示例:示例英语

代码:代码是什么

java:java游戏

ListActivity:ListActivity

managedQuery:managedQuery

上一篇:杀虎口白朗原型是什么样子的(白朗起义的经过)
下一篇:表示人及的成语(王人及是什么职业)(怎样才能搞好人际关系)

为您推荐