当前位置: 首页 > news >正文

电话销售怎么做 网站建设银行网站一直打不开

电话销售怎么做 网站,建设银行网站一直打不开,有口皆碑的域名备案加急,网站设计的分辨率一、接入的准备工作 官方文档链接地址#xff1a;开始使用一键登录和注册 按照步骤进行接入即可 二、项目参考#xff08;Unity项目#xff09; 注意#xff1a;代码版本如果不适用新的Google API 请自行参考最新版本接口 SDKGoogleSignInActivity 主要用于登录的代码。Un…一、接入的准备工作 官方文档链接地址开始使用一键登录和注册 按照步骤进行接入即可 二、项目参考Unity项目 注意代码版本如果不适用新的Google API 请自行参考最新版本接口 SDKGoogleSignInActivity 主要用于登录的代码。UnityPlayer.UnitySendMessage的参数按照自己项目填写com.xxxxx.my也是填写自己项目的路径。 package com.xxxxx.my;import android.content.Intent; import android.net.Uri; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.TextView;import com.zhijingweilai.domino.R; import com.google.android.gms.auth.api.signin.GoogleSignIn; import com.google.android.gms.auth.api.signin.GoogleSignInAccount; import com.google.android.gms.auth.api.signin.GoogleSignInClient; import com.google.android.gms.auth.api.signin.GoogleSignInOptions; import com.google.android.gms.common.SignInButton; import com.google.android.gms.common.api.ApiException; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; import com.unity3d.player.UnityPlayer;/*** Activity to demonstrate basic retrieval of the Google users ID, email address, and basic* profile.*/ public class SDKGoogleSignInActivity extends AppCompatActivity {private static final String TAG SignInActivity;private static final int RC_SIGN_IN 1234; // Can be any integer unique to the Activity.private GoogleSignInClient mGoogleSignInClient;private TextView mStatusTextView;Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);// [START configure_signin]// Configure sign-in to request the users ID, email address, and basic// profile. ID and basic profile are included in DEFAULT_SIGN_IN.String clientId getString(R.string.server_client_id);GoogleSignInOptions gso new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().requestIdToken(clientId).build();// [END configure_signin]// [START build_client]// Build a GoogleSignInClient with the options specified by gso.mGoogleSignInClient GoogleSignIn.getClient(this, gso);// [END build_client]}public void SendLogin() {GoogleSignInAccount account GoogleSignIn.getLastSignedInAccount(this);if (account ! null !account.isExpired()) {updateUI(account, );}elsesignIn();}// [START onActivityResult]Overridepublic void onActivityResult(int requestCode, int resultCode, Intent data) {super.onActivityResult(requestCode, resultCode, data);// Result returned from launching the Intent from GoogleSignInClient.getSignInIntent(...);if (requestCode RC_SIGN_IN) {// The Task returned from this call is always completed, no need to attach// a listener.TaskGoogleSignInAccount task GoogleSignIn.getSignedInAccountFromIntent(data);handleSignInResult(task);}}// [END onActivityResult]// [START handleSignInResult]private void handleSignInResult(TaskGoogleSignInAccount completedTask) {try {GoogleSignInAccount account completedTask.getResult(ApiException.class);// Signed in successfully, show authenticated UI.updateUI(account, );} catch (ApiException e) {// The ApiException status code indicates the detailed failure reason.// Please refer to the GoogleSignInStatusCodes class reference for more information.Log.w(TAG, signInResult:failed code e.getStatusCode());updateUI(null, e.toString());}}// [END handleSignInResult]// [START signIn]public void signIn() {Intent signInIntent mGoogleSignInClient.getSignInIntent();startActivityForResult(signInIntent, RC_SIGN_IN);}// [END signIn]// [START signOut]public void signOut() {mGoogleSignInClient.signOut().addOnCompleteListener(this, new OnCompleteListenerVoid() {Overridepublic void onComplete(NonNull TaskVoid task) {String str new JsonToString().AddJSONObject(result, 0).AddJSONObject(msg, signout).GetString();Log.i(Google, Google SignOut str str);UnityPlayer.UnitySendMessage(SDK_callback, OnGGSignOutResult, str);finish();}});}// [END signOut]// [START revokeAccess]public void revokeAccess() {mGoogleSignInClient.revokeAccess().addOnCompleteListener(this, new OnCompleteListenerVoid() {Overridepublic void onComplete(NonNull TaskVoid task) {String str new JsonToString().AddJSONObject(result, 0).AddJSONObject(msg, revokeAccess).GetString();Log.i(Google, Google RevokeAccess str str);UnityPlayer.UnitySendMessage(SDK_callback, OnGGRevokeAccessResult, str);finish();}});}// [END revokeAccess]private void updateUI(Nullable GoogleSignInAccount acct, String err) {if (acct ! null){String idToken acct.getIdToken();String personName acct.getDisplayName();String personGivenName acct.getGivenName();String personFamilyName acct.getFamilyName();String personEmail acct.getEmail();String personId acct.getId();Uri personPhoto acct.getPhotoUrl();Log.i(Google, Google SignIn URI personPhoto.toString());Log.i(Google, Google SignIn URI personPhoto.getPath());Log.i(Google, Google SignIn URI personPhoto.getQuery());String str new JsonToString().AddJSONObject(result, 0).AddJSONObject(msg, signin).AddJSONObject(refresh_token, idToken).AddJSONObject(personName, personName).AddJSONObject(personGivenName, personGivenName).AddJSONObject(personFamilyName, personFamilyName).AddJSONObject(personEmail, personEmail).AddJSONObject(loginId, personId).AddJSONObject(iconUrl, personPhoto.toString()).GetString();Log.i(Google, Google SignIn str str);UnityPlayer.UnitySendMessage(SDK_callback, OnGGSignInResult, str);acct null;}else{String str new JsonToString().AddJSONObject(result, 1).AddJSONObject(msg, signin).AddJSONObject(err, err).GetString();Log.i(Google, Google SignIn str str);UnityPlayer.UnitySendMessage(SDK_callback, OnGGSignInResult, str);}finish();}}JsonToString 用于处理数据将json数据转成string方便传输 package com.xxxxx.my;import org.json.JSONObject;public class JsonToString {private JSONObject jsonObj;public JsonToString(){jsonObj new JSONObject();};public JsonToString AddJSONObject(String key, Object val) {try {jsonObj.put(key, val);}catch(Exception e) {}return this;}public String GetString(){String str jsonObj.toString();return str;} }
http://www.hkea.cn/news/14337569/

相关文章:

  • 网站程序开发公司菠菜推广
  • 商品定制平台网站wordpress多线程
  • 网站建设验收总结讲话突出网站建设 突出能力
  • 网站建设中广告法绝对化用语整理php 网站下载器
  • 平面设计师常用的网站网站建设策划书的要求
  • 龙华网站建设app购物网站的建设
  • 学网站建设珠海互联网推广
  • 游戏开发用什么编程语言seo营销优化
  • 专业建设网站企业东莞做网站推广
  • 长春做网站新格公司win10怎么装wordpress
  • seo是什么职业合法吗seo网站推广佛山
  • 上海市建设安全协会网站j网站建设公司比较好的有哪些
  • 做垂直类网站网站数据库有什么用
  • 威海做网站的哪家好如何做网站需求
  • 照片做视频ppt模板下载网站深圳网站公司招聘信息
  • 哪一个网站可以做专利检索报告网站建设合同 费用
  • 最权威的品牌排行榜网站广州建设厅官网
  • wordpress网站合并宁波专业做公司网站的科技公司
  • 网站建设知名公司排名网站开发实验总结
  • 构站网Wordpress企业电商主题排行
  • 网站图片尺寸wordpress 文章免审核
  • php网站开发实施方案学平面设计哪个学校好
  • 做商城网站哪里wordpress初级教程
  • 做emc的有哪些网站crm app
  • 专门做品牌折扣的网站有哪些网站建设注册什么公司好
  • 做旅游产品的网站有哪些在线二维码制作生成器
  • devexpress做网站顺德网站设计制作
  • 桂林市区好玩的地方优化搜索引擎营销
  • 网站建设网上商城心得体会沈阳做网站的公司排行
  • 如何看一个网站做的如何做网站维护前景