本文整理汇总了Java中org.researchstack.backbone.ui.ViewTaskActivity.newIntent方法的典型用法代码示例。如果您正苦于以下问题:Java ViewTaskActivity.newIntent方法的具体用法?Java ViewTaskActivity.newIntent怎么用?Java ViewTaskActivity.newIntent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.researchstack.backbone.ui.ViewTaskActivity
的用法示例。
在下文中一共展示了ViewTaskActivity.newIntent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: launchYADLFull
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchYADLFull()
{
Log.i(LOG_TAG, "Launching YADL Full Assessment");
OrderedTask task = YADLFullAssessmentTask.create(YADL_FULL_ASSESSMENT, getResources().getString(R.string.yadl_json), this);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_YADL_FULL);
}
示例2: launchMEDLFull
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchMEDLFull()
{
Log.i(LOG_TAG, "Launching MEDL Full Assessment");
OrderedTask task = MEDLFullAssessmentTask.create(MEDL_FULL_ASSESSMENT, getResources().getString(R.string.medl_json), this);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_MEDL_FULL);
}
示例3: launchPAM
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchPAM()
{
Log.i(LOG_TAG, "Launching PAM");
OrderedTask task = PAMTask.create(PAM_ASSESSMENT, this);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_PAM);
}
示例4: launchPAMMultiple
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchPAMMultiple()
{
Log.i(LOG_TAG, "Launching PAMMultiple");
PAMMultipleSelectionStep step = PAMMultipleSelectionStep.create(PAM_MULTIPLE_ASSESSMENT, this);
InstructionStep instructionStep = new InstructionStep("instruction", "PAM Multiple Completed", "Thanks for completing the PAM multiple step");
OrderedTask task = new OrderedTask(PAM_MULTIPLE_ASSESSMENT, step, instructionStep);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_PAM_MULTIPLE);
}
示例5: launchText
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchText()
{
Log.i(LOG_TAG, "Launching PAMMultiple");
// public CTFTextVSRAssessmentStep(
// String identifier,
// String title,
// AnswerFormat answerFormat,
// RSXMultipleImageSelectionSurveyOptions options
// )
String title = "Below is a list of behaviors that people may have trouble controlling. Please select UP TO 4 of the ones that you have the most trouble controlling.";
Choice choice1 = new Choice("choice1", "choice1");
Choice choice2 = new Choice("choice2", "choice2");
AnswerFormat answerFormat = new ChoiceAnswerFormat(
AnswerFormat.ChoiceAnswerStyle.MultipleChoice,
new Choice("Eating\nunhealthy\nfood", "choice1"),
new Choice("Hair pulling /\nskin picking", "choice2"));
RSXMultipleImageSelectionSurveyOptions options = new RSXMultipleImageSelectionSurveyOptions();
options.setItemMinSpacing(32 * 2);
options.setItemsPerRow(2);
options.setSomethingSelectedButtonColor(ThemeUtils.getAccentColor(this));
options.setNothingSelectedButtonColor(ThemeUtils.getAccentColor(this));
options.setItemCellSelectedColor(ThemeUtils.getAccentColor(this));
CTFTextVSRAssessmentStep step = new CTFTextVSRAssessmentStep(PAM_MULTIPLE_ASSESSMENT, title, answerFormat, options);
// PAMMultipleSelectionStep step = PAMMultipleSelectionStep.create(PAM_MULTIPLE_ASSESSMENT, this);
OrderedTask task = new OrderedTask(PAM_MULTIPLE_ASSESSMENT, step);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_PAM_MULTIPLE);
}
示例6: launchYADLSpot
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchYADLSpot()
{
Log.i(LOG_TAG, "Launching YADL Spot Assessment");
AppPrefs prefs = AppPrefs.getInstance(this);
Set<String> selectedActivies = prefs.getYADLActivities();
OrderedTask task = YADLSpotAssessmentTask.create(YADL_SPOT_ASSESSMENT, getResources().getString(R.string.yadl_json), this, selectedActivies);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_YADL_SPOT);
}
示例7: launchMEDLSpot
import org.researchstack.backbone.ui.ViewTaskActivity; //导入方法依赖的package包/类
private void launchMEDLSpot() {
Log.i(LOG_TAG, "Launching MEDL Spot Assessment");
AppPrefs prefs = AppPrefs.getInstance(this);
Set<String> selectedItems = prefs.getMEDLItems();
OrderedTask task = MEDLSpotAssessmentTask.create(MEDL_SPOT_ASSESSMENT, getResources().getString(R.string.medl_json), this, selectedItems);
// Create an activity using the task and set a delegate.
Intent intent = ViewTaskActivity.newIntent(this, task);
startActivityForResult(intent, REQUEST_MEDL_SPOT);
}