首页 游戏开发 Unity3D     /    (接入华为sdkforunity)eclipse部分

(接入华为sdkforunity)eclipse部分

上传者: qq_38526653 | 上传时间:2024/8/25 11:15:30 | 文件大小:920KB | 文件类型:zip
(接入华为sdkforunity)eclipse部分
/***初始化SDK*/privatestaticvoidinitSDK(Stringappid,Stringappkey){ProxySelectordefaultProxySelector=ProxySelector.getDefault();Proxyproxy=null;ListproxyList=null;try{proxyList=defaultProxySelector.select(newURI("http://www.google.it"));}catch(URISyntaxExceptione){e.printStackTrace();}if(proxyList!=null&&proxyList.size()>0){proxy=proxyList.get(0);Log.d(TAG,"CurrentProxyConfiguration:"+proxy.toString());}AppInfoappInfo=newAppInfo();appInfo.setAppId(appid);//应用IDappInfo.setAppKey(appkey);//应用KeyappInfo.setCtx(ctx);/**VersionCheckLevelNormal版本检查失败可以继续进行游戏VersionCheckLevelStrict*版本检查失败则不能进入游戏默认取值为VersionCheckLevelStrict*/appInfo.setVersionCheckStatus(AppInfo.VERSION_CHECK_LEVEL_STRICT);//初始化SDKCommplatform.getInstance().Init(0,appInfo,newCallbackListener(){@Overridepublicvoidcallback(finalintparamInt,IntegerparamT){ctx.runOnUiThread(newRunnable(){@Overridepublicvoidrun(){Log.i(TAG,"InitparamInt="+paramInt);//ok.setEnabled(true);LogUtil.send("初始化:"+paramInt);}});}});}/***用户登录**/publicstaticvoidloginEx(Contextcontext){Bundlebundle=newBundle();bundle.putString("nounce",UUID.randomUUID().toString().replace("-",""));Commplatform.getInstance().LoginEx(context,bundle,newCallbackListener(){@Overridepublicvoidcallback(intresultCode,Bundlebundle){if(resultCode==ErrorCode.COM_PLATFORM_SUCCESS){//完成参数验签//处理登录成功逻辑//HomeActivity.show(ctx);//Stringuin=bundle.getString("uin");LogUtil.send("登录成功:");//Stringuin=bundle.get("nounce").toString();Stringuin=Commplatform.getInstance().getLoginUin();LogUtil.send("登录成功uin:"+uin);UnityPlayer 本软件ID:10029761

文件下载

资源详情

[{"title":"(59个子文件920KB)(接入华为sdkforunity)eclipse部分","children":[{"title":"hwdemo","children":[{"title":"bin","children":[{"title":"res","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"hw","children":[{"title":"complatform","children":[{"title":"database","children":[{"title":"UserDBOpenHelper.class <span style='color:#111;'>2.68KB</span>","children":null,"spread":false},{"title":"UserDBUtils.class <span style='color:#111;'>4.26KB</span>","children":null,"spread":false},{"title":"DBOpenManager.class <span style='color:#111;'>912B</span>","children":null,"spread":false},{"title":"OrderInfo.class <span style='color:#111;'>1.27KB</span>","children":null,"spread":false},{"title":"PaymentTableAdapter.class <span style='color:#111;'>5.26KB</span>","children":null,"spread":false},{"title":"PaymentInfo.class <span style='color:#111;'>1.46KB</span>","children":null,"spread":false}],"spread":true},{"title":"pay","children":[{"title":"HwManager.class <span style='color:#111;'>6.85KB</span>","children":null,"spread":false},{"title":"ProductBean.class <span style='color:#111;'>1.66KB</span>","children":null,"spread":false},{"title":"HwManager$1$1.class <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"HwManager$2.class <span style='color:#111;'>1.42KB</span>","children":null,"spread":false},{"title":"HwManager$4.class <span style='color:#111;'>2.19KB</span>","children":null,"spread":false},{"title":"HwManager$3$1.class <span style='color:#111;'>2.27KB</span>","children":null,"spread":false},{"title":"HwManager$1.class <span style='color:#111;'>1.06KB</span>","children":null,"spread":false},{"title":"HwManager$5.class <span style='color:#111;'>1.76KB</span>","children":null,"spread":false},{"title":"HwManager$3.class <span style='color:#111;'>1.21KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"hwdemo","children":[{"title":"hwgame","children":[{"title":"BuildConfig.class <span style='color:#111;'>343B</span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'>404B</span>","children":null,"spread":false},{"title":"UnityActivity.class <span style='color:#111;'>1.36KB</span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'>337B</span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'>567B</span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'>395B</span>","children":null,"spread":false},{"title":"R$xml.class <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'>428B</span>","children":null,"spread":false},{"title":"R$raw.class <span style='color:#111;'>385B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'>4.38KB</span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"raw","children":[{"title":"channel.properties <span style='color:#111;'>208B</span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'>334B</span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'>391B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>7.48KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>12.22KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>24.20KB</span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'>76B</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>697B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'>3.69KB</span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":null,"spread":false},{"title":"xml","children":[{"title":"file_paths.xml <span style='color:#111;'>137B</span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'>781B</span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'>50.19KB</span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"hwdemo","children":[{"title":"hwgame","children":[{"title":"BuildConfig.java <span style='color:#111;'>159B</span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'>1.77KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>177B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"hw","children":[{"title":"complatform","children":[{"title":"database","children":[{"title":"PaymentInfo.java <span style='color:#111;'>1.93KB</span>","children":null,"spread":false},{"title":"UserDBUtils.java <span style='color:#111;'>6.46KB</span>","children":null,"spread":false},{"title":"DBOpenManager.java <span style='color:#111;'>792B</span>","children":null,"spread":false},{"title":"PaymentTableAdapter.java <span style='color:#111;'>5.46KB</span>","children":null,"spread":false},{"title":"OrderInfo.java <span style='color:#111;'>1.49KB</span>","children":null,"spread":false},{"title":"UserDBOpenHelper.java <span style='color:#111;'>3.27KB</span>","children":null,"spread":false}],"spread":true},{"title":"pay","children":[{"title":"ProductBean.java <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"HwManager.java <span style='color:#111;'>10.51KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"hwdemo","children":[{"title":"hwgame","children":[{"title":"UnityActivity.java <span style='color:#111;'>875B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>842B</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>711B</span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'>636B</span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>4.38KB</span>","children":null,"spread":false},{"title":"libs","children":[{"title":"odin.jar <span style='color:#111;'>142.19KB</span>","children":null,"spread":false},{"title":"android-support-v4.jar <span style='color:#111;'>543.16KB</span>","children":null,"spread":false},{"title":"classes.jar <span style='color:#111;'>67.95KB</span>","children":null,"spread":false},{"title":"bridge_sdk_game.jar <span style='color:#111;'>141.86KB</span>","children":null,"spread":false}],"spread":true},{"title":"lint.xml <span style='color:#111;'>53B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • Bono.love:
    挺好的资源2018-03-22
  • guohongrun:
    闪退啊,求支援2017-12-26

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明