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


Java OnActivityResult.Extra方法代码示例

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


在下文中一共展示了OnActivityResult.Extra方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onResultLabel

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_LABEL)
protected void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (code == RESULT_OK) {
        modifyData.labels = labels;
        editFragment.updateLabels(modifyData.labels);
        previewFragment.updateLabels(modifyData.labels);
        labelsHasChanged = true;
        saveLabelsIfCancel();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:11,代码来源:TopicAddActivity.java

示例2: onResultPickColor

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
    if (result == RESULT_OK) {
        generateColor = resultData;
        updateColorPreview();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TopicLabelActivity.java

示例3: onResultModify

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_MODIFY)
void onResultModify(int result, @OnActivityResult.Extra TopicLabelObject resultData) {
    if (result == RESULT_OK) {
        if (allLabels.containsKey(currentLabelId)) {
            TopicLabelObject topicLabelObject = allLabels.get(currentLabelId);
            topicLabelObject.name = resultData.name;
            topicLabelObject.color = resultData.color;
        }
        updateList();
    }

    unlockViews();
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:14,代码来源:TopicLabelActivity.java

示例4: onResultPickColor

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_PICK_COLOR)
void onResultPickColor(int result, @OnActivityResult.Extra int resultData) {
    if (result == RESULT_OK) {
        labelObject.color = resultData;
        updateColorPreview();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:ModifyLabelActivity.java

示例5: resultRefResource

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
    if (resultCode == RESULT_OK) {
        refResourceList = resultData;
        updateRefResourceUI();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:MergeDetailActivity.java

示例6: onResultEdit

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_EDIT)
void onResultEdit(int resultCode, @OnActivityResult.Extra GitFileBlobObject resultData) {
    if (resultCode == RESULT_OK) {
        mFile = resultData;
        bindUIByData();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:GitViewActivity.java

示例7: onResultLabel

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_LABEL)
void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (code == RESULT_OK) {
        topicObject.labels = labels;
        updateLabels(topicObject.labels);
        mResultData.putExtra("topic", topicObject);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:9,代码来源:TopicListDetailActivity.java

示例8: onResultModifyWatcher

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_MODIFY_WATCHER)
void onResultModifyWatcher(int code, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
    if (code == RESULT_OK) {
        watchers = resultData;
        watchHelp.setData(this.watchers);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TopicListDetailActivity.java

示例9: onResultPickCountry

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_PICK_COUNTRY)
void onResultPickCountry(int resultCode, @OnActivityResult.Extra PhoneCountry resultData) {
    if (resultCode == Activity.RESULT_OK && resultData != null) {
        pickCountry = resultData;
        bindCountry();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:PhoneRegisterActivity.java

示例10: on_RESULT_REQUEST_LOCATION

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_REQUEST_LOCATION)
void on_RESULT_REQUEST_LOCATION(int result, @OnActivityResult.Extra LocationObject location) {
    if (result == RESULT_OK) {
        currentLocation = location;
        updateLocationText();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:MaopaoAddActivity.java

示例11: on_RESULT_REQUEST_LOCATION

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(MaopaoAddActivity.RESULT_REQUEST_LOCATION)
void on_RESULT_REQUEST_LOCATION(int result, Intent intent, @OnActivityResult.Extra LocationObject location) {
    if (result == RESULT_OK) {
        setResult(RESULT_OK, intent);
        finish();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:LocationSearchActivity.java

示例12: resultLabels

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_LABEL)
void resultLabels(int result, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) {
    if (result == RESULT_OK) {
        mSingleTask.labels = labels;
        updateLabels(labels);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例13: resultWatchUser

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_REQUEST_PICK_WATCH_USER)
void resultWatchUser(int result, @OnActivityResult.Extra ArrayList<UserObject> resultData) {
    if (result == RESULT_OK) {
        watchUsers = resultData;
        uiBindDataWatch();
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例14: resultRefResource

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_RESUSE_REFRESOURCE)
void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) {
   if (resultCode == RESULT_OK) {
       refResourceList = resultData;
       updateRefResourceUI();
   }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:8,代码来源:TaskAddActivity.java

示例15: resultSelectUser

import org.androidannotations.annotations.OnActivityResult; //导入方法依赖的package包/类
@OnActivityResult(RESULT_REQUEST_SELECT_USER)
void resultSelectUser(int resultCode, @OnActivityResult.Extra TaskObject.Members members) {
    if (resultCode == Activity.RESULT_OK) {
        setPickUser(members);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:7,代码来源:TaskAddActivity.java


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