* Checks whether the given request code is a valid code by masking it with 0xffff0000. Throws * an {@linkIllegalArgumentException} if the code is not valid. */ static voidcheckForValidRequestCode(int requestCode) { if ((requestCode &0xffff0000) !=0) { throw new IllegalArgumentException("...
37});38}3940/**41* 当从其他页面返回来的时候,会调用此方法42*/43@Override44protectedvoidonActivityResult(intrequestCode,intresultCode, Intent data) {45super.onActivityResult(requestCode, resultCode, data);46if(requestCode ==REQUEST_CODE) {47if(resultCode ==ReceiveAcitivity.RUSULT_CODE_1) {48Toast...
SUCCESS) { showTip("初始化失败,错误码:" + code); } } }; //听写监听器 private RecognizerListener mRecognizeListener = new RecognizerListener() { @Override public void onBeginOfSpeech() { // 此回调表示:sdk内部录音机已经准备好了,用户可以开始语音输入 showTip("开始说话"); } @Override public...
onActivityResult(int requestCode, int resultCode, Inten data) onActivityResult中 第一个参数:这个整数requestCode用于与startActivityForResult中的requestCode中值进行比较判断,是以便确认返回的数据是从哪个Activity返回的。 第二个参数:这整数resultCode是由子Activity通过其setResult()方法返回。适用于多个activity都返回数...
This section uses Android Studio as an example to describe how to integrate the Android SDK for API request signing. You can import the sample project in the code package, and integrate the signing SDK into your application by referring to the API calling example....
选择结果交给 FileSelector 处理, 可通过`requestCode -> REQUEST_CHOOSE_FILE`进行区分 mFileSelector?.obtainResult(requestCode, resultCode, data) }选择文件不满足预设条件时,有两种策略 : OVER_LIMIT_EXCEPT_ALL 文件超过数量或大小限制直接返回失败, 回调 onError OVER_LIMIT_EXCEPT_OVERFLOW ① 文件超过数量...
Code Search Find more, search less Explore Why GitHub All features Documentation GitHub Skills Blog Solutions By company size Enterprises Small and medium teams Startups Nonprofits By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturin...
移动与智慧屏应用Authorization Code模式接入华为帐号(OAuth 2.0) 仅申请OpenID或UnionID的应用接入华为帐号快捷登录 接口说明 登录帐号 静默登录 退出帐号 帐号取消授权 独立授权(可选) 获取图标资源(可选) HuaweiIdAuthButton控件使用指导 开发后自检 上架申请 SDK隐私声明 SDK合规使...
对比差异通过 Pull Request 同步 同步更新到分支 通过Pull Request 同步 将会在向当前分支创建一个 Pull Request,合入后将完成同步 Yaroslav ProninMigrate to RxJava 37c628c31个月前 1157 次提交 取消 提示:由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件 ...
=newLocationRequest(); builder .addLocationRequest( mLocationRequest ); LocationSettingsRequest locationSettingsRequest = builder .build(); // 检查设备定位设置 settingsClient .checkLocationSettings( locationSettingsRequest ) // 检查设备定位设置接口调用成功监听 ...