当前位置: 首页>>代码示例>>Java>>正文


Java ViewTaskActivity.newIntent方法代码示例

本文整理汇总了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);

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:12,代码来源:MainActivity.java

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

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:11,代码来源:MainActivity.java

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

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:12,代码来源:MainActivity.java

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

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:15,代码来源:MainActivity.java

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

    }
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:39,代码来源:MainActivity.java

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

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:16,代码来源:MainActivity.java

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

}
 
开发者ID:ResearchSuite,项目名称:sdl-rsx,代码行数:15,代码来源:MainActivity.java


注:本文中的org.researchstack.backbone.ui.ViewTaskActivity.newIntent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。