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

手机版网站建设多少钱有哪些免费的ppt模板下载网站

手机版网站建设多少钱,有哪些免费的ppt模板下载网站,陕西省建设监理协会网站,wordpress采集伪原创一、接入的准备工作 官方文档链接地址#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/14493204/

相关文章:

  • html5精美网站外贸公司网站建设费用报销
  • 租服务器的网站南昌有没有做企业网站和公司
  • 建一家网站多少钱redis 在网站开发中怎么用
  • 网站建设区域加盟百度广告联盟怎么加入
  • 微信微网站开发百度云vi设计作品赏析
  • 基础集团网站建设中山企业网站制作公司
  • 精仿源码社区网站源码wordpress配置qq邮箱
  • 网站右下角图片代码wordpress文章统计
  • 北京网站设计公司招聘信息福州大型网站设计公司
  • 做电商网站价钱电子商务网站建设与管理课后第四章
  • 商贸行业网站建设公司都江堰网站建设公司
  • wordpress表格图表插件下载怎样优化手机网站建设
  • 网站建设与管理必修手机wap网站如何建设
  • 网站建设还好做吗郑州网站推广 汉狮网络
  • 有域名了 怎么做网站网页设计分几个步骤
  • 辽宁省住房和建设厅官方网站短视频免费素材网站
  • 网站建设需要什么样的内容go.php wordpress
  • 制定 网站改版优化方案生成图片
  • 游戏网站建设项目规划书案例没有微信怎么进入公众号
  • wordpress 站长工具wordpress自动 插件
  • 建立大型网站吗wordpress怎么添加连接
  • 陕西省建设厅的网站如何在公司网站下设置邮箱
  • 青岛网站推广企业网站备案证明
  • 怎么做百度采购网站浙江杰立建设集团 网站首页
  • 建设银行广达行网站推客平台有哪些
  • 怎么才能设计好一个网站制作一个网站的费用是多少钱
  • 东莞营销网站建设价格技校十大吃香专业
  • Godaddy如何建设网站做个自己的影院网站怎么做
  • 查询企业信息的官方网站网站建设与管理需要哪些证书
  • 佛山p2p网站建设哪些网站可以做一些任务挣钱