本文整理汇总了Java中com.google.samples.apps.iosched.provider.ScheduleContract.Sessions.buildSessionUri方法的典型用法代码示例。如果您正苦于以下问题:Java Sessions.buildSessionUri方法的具体用法?Java Sessions.buildSessionUri怎么用?Java Sessions.buildSessionUri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.samples.apps.iosched.provider.ScheduleContract.Sessions
的用法示例。
在下文中一共展示了Sessions.buildSessionUri方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateLoader
import com.google.samples.apps.iosched.provider.ScheduleContract.Sessions; //导入方法依赖的package包/类
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
switch (id) {
case SessionSummaryQuery._TOKEN:
return new CursorLoader(this, Sessions.buildSessionUri(mSessionId),
SessionSummaryQuery.PROJECTION, null, null, null);
case SessionsQuery._TOKEN:
boolean futureSessions = false;
if (args != null) {
futureSessions = args.getBoolean(LOADER_SESSIONS_ARG, false);
}
final long currentTime = UIUtils.getCurrentTime(this);
String selection = Sessions.LIVESTREAM_SELECTION + " and ";
String[] selectionArgs;
if (!futureSessions) {
selection += Sessions.AT_TIME_SELECTION;
selectionArgs = Sessions.buildAtTimeSelectionArgs(currentTime);
} else {
selection += Sessions.UPCOMING_LIVE_SELECTION;
selectionArgs = Sessions.buildUpcomingSelectionArgs(currentTime);
}
return new CursorLoader(this, Sessions.CONTENT_URI, SessionsQuery.PROJECTION,
selection, selectionArgs, SessionsQuery.SORT_ORDER);
}
return null;
}
示例2: onSessionClicked
import com.google.samples.apps.iosched.provider.ScheduleContract.Sessions; //导入方法依赖的package包/类
@Override
public void onSessionClicked(String sessionId) {
Bundle args = new Bundle();
Uri sessionUri = Sessions.buildSessionUri(sessionId);
args.putString(ScheduleModel.SESSION_URL_KEY, sessionUri.toString());
startActivity(new Intent(Intent.ACTION_VIEW, sessionUri));
}
示例3: onSessionClicked
import com.google.samples.apps.iosched.provider.ScheduleContract.Sessions; //导入方法依赖的package包/类
@Override
public void onSessionClicked(String sessionId) {
Bundle args = new Bundle();
Uri sessionUri = Sessions.buildSessionUri(sessionId);
args.putString(ScheduleModel.SESSION_URL_KEY, sessionUri.toString());
mListener.onUserAction(MyScheduleUserActionEnum.SESSION_SLOT, args);
startActivity(new Intent(Intent.ACTION_VIEW, sessionUri));
}
示例4: launchFeedback
import com.google.samples.apps.iosched.provider.ScheduleContract.Sessions; //导入方法依赖的package包/类
public static void launchFeedback(Context context, String sessionId) {
Uri uri = Sessions.buildSessionUri(sessionId);
context.startActivity(new Intent(Intent.ACTION_VIEW, uri, context,
SessionFeedbackActivity.class));
}
示例5: setSessionBookmark
import com.google.samples.apps.iosched.provider.ScheduleContract.Sessions; //导入方法依赖的package包/类
private void setSessionBookmark(String sessionId, boolean bookmarked, String title) {
Uri sessionUri = Sessions.buildSessionUri(sessionId);
mSessionsHelper.setSessionStarred(sessionUri, bookmarked, title);
}