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

绵阳公司商务网站制作临沂网站建设技术支持

绵阳公司商务网站制作,临沂网站建设技术支持,郑州做网站那家好,企业策划案怎么写Android 开机向导定制 采用 rro_overlays 机制来定制开机向导#xff0c;定制文件如下#xff1a; GmsSampleIntegrationOverlay$ tree . ├── Android.bp ├── AndroidManifest.xml └── res └── raw ├── wizard_script_common_flow.xml ├── wizard_script…Android 开机向导定制 采用 rro_overlays 机制来定制开机向导定制文件如下 GmsSampleIntegrationOverlay$ tree . ├── Android.bp ├── AndroidManifest.xml └── res └── raw ├── wizard_script_common_flow.xml ├── wizard_script_customize_flow.xml └── wizard_script.xml Android.bp runtime_resource_overlay {name: GmsSampleIntegrationOverlay,product_specific: true, } 在项目对应的.mk 文件添加编译引用 PRODUCT_PACKAGES \GmsSampleIntegrationOverlay AndroidManifest.xml ?xml version1.0 encodingutf-8? !-- #/* # * Copyright (C) 2023 Lens Technology (Xiangtan) Co.,Ltd, All rights reserved. # * Author: XT900109 # */ -- manifest xmlns:androidhttp://schemas.android.com/apk/res/androidpackagecom.xxxx.gmssampleintegrationsoverlayandroid:versionCode1android:versionName1.0application android:hasCodefalse /overlay android:targetPackagecom.google.android.gmsintegrationandroid:priority0android:isStatictrue / /manifestrro_overlays/GmsSampleIntegrationOverlay/res/raw/wizard_script_lens_customize_flow.xml 自定义 wizard_script_customize_flow.xml ?xml version1.0 encodingUTF-8? !--The wizard:uris recorded here have the inconvenience of being generated by hand, but they allowfor the full spread of launch flags (we need FLAG_ACTIVITY_NEW_TASK [0x10000000]), where theintent tag processed by Intent.parseIntent() does not.adb shell am to-intent-uri -a com.android.setupwizard.WELCOME -f 0x10000000 \-\-ez firstRun true --WizardScript xmlns:wizardhttp://schemas.android.com/apk/res/com.google.android.setupwizardwizard:firstActionuser_terms_of_service1WizardAction iduser_terms_of_service1wizard:uriintent:#Intent;actioncom.android.setupwizard.USER_TERMS_OF_SERVICE;end result wizard:actionuser_service_notice //WizardActionWizardAction iduser_service_noticewizard:uriintent:#Intent;actioncom.android.setupwizard.USER_SETUP_FINISH;end /WizardAction!-- WizardAction idEND_OF_SCRIPTwizard:uriintent:#Intent;actioncom.android.setupwizard.EXIT;end /-- /WizardScript在 wizard_script_common_flow.xml 文件里面添加引用 WizardAction iduser_terms_of_servicewizard:scriptandroid.resource://com.xxxx.gmssampleintegrationsoverlay/raw/wizard_script_customize_flow /WizardAction注意这里的 com.xxxx.gmssampleintegrationsoverlay 需要对应上面AndroidManifest.xml package !-- Set screen lock options. The action must precede the payments action [RECOMMENDED, CUSTOMIZABLE] --WizardAction idlock_screenwizard:uriintent:#Intent;actioncom.google.android.setupwizard.LOCK_SCREEN;end /WizardAction!-- MY completion [CUSTOMIZABLE] --WizardAction iduser_terms_of_servicewizard:scriptandroid.resource://com.xxxx.gmssampleintegrationsoverlay/raw/wizard_script_customize_flow/WizardAction!-- Labeled end of script (for branching) [RECOMMENDED, CUSTOMIZABLE] --WizardAction idEND_OF_SCRIPT /定义 com.android.setupwizard.USER_TERMS_OF_SERVICE 在项目的 AndroidManifest.xml activity android:name.setupwizard.SetupWFinishActivityandroid:exportedtrue intent-filteraction android:namecom.android.setupwizard.USER_SETUP_FINISH /category android:nameandroid.intent.category.DEFAULT //intent-filter/activity SetupWFinishActivity.java package com.android.settings.setupwizard;import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.WindowManager;import com.android.settings.R;public class SetupWFinishActivity extends Activity {public static final String TAG SetupWFinishActivity;Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);getWindow().setStatusBarColor(Color.WHITE);getWindow().setNavigationBarColor(Color.WHITE);getWindow().setNavigationBarDividerColor(Color.WHITE);getActionBar().hide();setContentView(R.layout.activity_setup_wfinish);findViewById(R.id.button3).setOnClickListener(new View.OnClickListener() {Overridepublic void onClick(View view) {//: TODO onNext();}});}public void onNext() {int resultCode Activity.RESULT_OK;Intent intent WizardManagerHelper.getNextIntent(getIntent(), resultCode);Log.e(TAG, onNext() intent: intent);try {startActivityForResult(intent, Activity.RESULT_OK);} catch (ActivityNotFoundException e) {Log.e(TAG, e.getMessage());}Intent returnIntent new Intent();setResult(Activity.RESULT_OK,returnIntent);finish();} } WizardManagerHelper的实现 static class WizardManagerHelper {private static final String ACTION_NEXT com.android.wizard.NEXT;static final String EXTRA_SCRIPT_URI scriptUri;static final String EXTRA_ACTION_ID actionId;private static final String EXTRA_RESULT_CODE com.android.setupwizard.ResultCode;public static final String EXTRA_THEME theme;static final String EXTRA_WIZARD_BUNDLE wizardBundle;static final String EXTRA_IS_FIRST_RUN firstRun;static final String EXTRA_IS_DEFERRED_SETUP deferredSetup;static final String EXTRA_IS_PRE_DEFERRED_SETUP preDeferredSetup;public static final String EXTRA_IS_SETUP_FLOW isSetupFlow;public static Intent getNextIntent(Intent originalIntent, int resultCode) {return getNextIntent(originalIntent, resultCode, null);}public static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data) {Intent intent new Intent(ACTION_NEXT);copyWizardManagerExtras(originalIntent, intent);intent.putExtra(EXTRA_RESULT_CODE, resultCode);if (data ! null data.getExtras() ! null) {intent.putExtras(data.getExtras());}intent.putExtra(EXTRA_THEME, originalIntent.getStringExtra(EXTRA_THEME));return intent;}public static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent) {dstIntent.putExtra(EXTRA_WIZARD_BUNDLE, srcIntent.getBundleExtra(EXTRA_WIZARD_BUNDLE));for (String key :Arrays.asList(EXTRA_IS_FIRST_RUN,EXTRA_IS_DEFERRED_SETUP,EXTRA_IS_PRE_DEFERRED_SETUP,EXTRA_IS_SETUP_FLOW)) {dstIntent.putExtra(key, srcIntent.getBooleanExtra(key, false));}for (String key : Arrays.asList(EXTRA_THEME, EXTRA_SCRIPT_URI, EXTRA_ACTION_ID)) {dstIntent.putExtra(key, srcIntent.getStringExtra(key));}}}
http://www.eeditor.cn/news/125265/

相关文章:

  • 网站建设系统服务用织梦做网站费用
  • 关于我们网站模板定制企业网站多少钱
  • 郑州专业手机网站制作宁乡网站建设
  • 做外贸网站企业一个网站的入口网页又称为
  • 关键词优化好贵州百度seo整站优化
  • 网站开发常用颜色大中型网站开发流程
  • 自己怎样优化网站新手设计师接单网站
  • 外贸网站推广方式个人微信支付宝做购物网站
  • 数据库怎么做两个网站呼和浩特北京网站建设
  • 鼓楼福州网站建设二维码引流推广的平台
  • 视频网站开发流程图动漫制作专业大学有哪些
  • 书店手机网站模板国外做免费网站的
  • 品牌外贸网站建设设计师网站知乎
  • 做网站的 需要续费维护费吗什么叫外链
  • 聊城网站建设代理商whois查询 站长工具
  • 网站域名个人备案跟企业备案怎么在word上做超链接网站
  • 营销网站制作信ls15227易语言 网站开发
  • 网站制作评价外贸公司网站案例
  • 视觉差 网站网站数据库建设
  • 网站进入考核期要多久网站建设及维护机
  • 知名高校网站建设怎么搭建网站友情链接
  • 网站和网页邯郸建网站公司
  • 聊城网站建设设计开发公司安卓优化大师新版
  • 网站配色 要用什么原则专业网站建设必要性
  • 网站首页特效服务于中小企业建网站
  • 可以免费浏览的网站网站的域名怎么看
  • copyright技术支持 东莞网站建设春雨直播免费视频
  • 网站建设一般怎么付款筹备网站建设
  • 家居行业网站开发影响网站用户体验
  • 南京高端网站开发手机网站前端设计