国产1区在线_国产做爰_久久精品视频亚洲_免费久久久_日日天日日夜日日摸_欧美 亚洲 激情

返回舊版
當前位置:
首頁
>
技術支持
Product user manual

產品使用手冊

F493X 安卓廣播接口

2022-11-10 09:31:56
  1. 旋轉屏幕廣播

系統消息: android.intent.action.rotate_screen

參數: rotation 0 、90 、180 、270

示例代碼:

Intent intent=new Intent();

intent.setAction("android.intent.action.rotate_screen");

intent.putExtra("rotation","90");

sendBroadcast(intent);

  1. 定時開關機廣播

系統消息: android.intent.action.auto_power_shut

參數:

effective boolean

定時開關機/重啟功能 默認值為flase 需要應用程序傳遞參數

true啟用此功能 false關閉此功能

power_type int

默認值為3 需要應用程序傳遞參數

1 馬上重啟 2 馬上關機 3 定時開關機 4 定時重啟 5 定時開關機(重啟)

wday int

代表的是星期幾之和

默認值為127 即1+2+4+8+16+32+64 ,需要應用程序傳遞參數

reboot int

定時重啟 默認值為0,不需要應用程序傳遞參數

代表定時重啟 1 啟用此功能 0 關閉此功能

flag int

定時關機 默認值為0,不需要應用程序傳遞參數

星期日 星期一 星期二 星期三 星期四 星期五 星期六

tm_wday 0 1 2 3 4 5 6

wday 1 2 4 8 16 32 64

比如選中周日和周四,則wday=1+16 =17

獲取星期幾的方法:

(wday>>tm_wday)&1 等于1表示當天有選中,等于0表示沒有選中。

例如:

((17>>4)&1) ==1 表示周四有選中

((17>>3)&1) == 0 表示周三沒有被選中

shutdown_time 關機時間,格式為 00:00:00

poweron_time 開機時間,格式為 00:00:00

reboot_time 重啟時間,格式為 00:00:00

示例代碼://F4932

Intent it = new Intent();

it.setAction("android.intent.action.auto_power_shut");

it.putExtra("effective",true);

it.putExtra("power_type",3);

it.putExtra("wday",127);

it.putExtra("shut_time",”07:10”);

it.putExtra("power_time",”20:00”);

sendBroadcast(it);

//F4932R1Q

Intent it = new Intent();

it.setAction("android.allwinner.intent.action.setpoweronoff");

it.putExtra("enable",true);

it.putExtra("power_type",3);

it.putExtra("wday",127);

it.putExtra("timeoff",”07:10”);

it.putExtra("timeon",”20:00”);

sendBroadcast(it);

  1. 顯示/隱藏導航欄

系統消息: android.intent.action.hidenavigation

參數:

enable true 隱藏狀態欄和導航欄 false 顯示導航欄和狀態欄

示例代碼:

Intent intent=new Intent();

intent.setAction("android.intent.action.hidenavigation ");

intent.putExtra("enable",value ? "1" : "0");

sendBroadcast(intent);

4、系統消息: android.intent.action.installslient

參數:

uri apk安裝包所在的路徑

示例代碼:

Intent intent=new Intent();

intent.setAction("android.intent.action.installslient");

intent.putExtra("uri","/sdcard/myserial.apk");

intent.putExtra("component","android_serialport_api.sample/.MainMenu"); sendBroadcast(intent);

5、mode鍵廣播

設備mode鍵左右撥動時會發出系統廣播如下消息:

Intent intent=new Intent();

intent.setAction("android.intent.action.ENG_MODE_SWITCH");

intent.putExtra("state",0); //往右撥動發state為0

//intent.putExtra("state",1); //往左撥動發state為1

sendBroadcast(intent);

6、系統升級廣播

設備發廣播升級系統功能

Intent it = new Intent();

it.setAction("com.mobilepower.terminal.upgrade");

it.putExtra("upgradePath","/sdcard/update.zip");//要升級的文件路徑

sendBroadcast(intent);

7、設備重啟廣播

Intent it = new Intent();

it.setAction("com.fourfaith.reboot");

sendBroadcast(it);

8、OTA在線下載升級廣播

a、從FF自有平臺上獲取url鏈接進行下載。

Intent intent = new Intent();

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

intent.setAction("com.FF.ota.update");

sendBroadcast(intent);

b、根據客戶發送的url鏈接進行下載。

Intent intent = new Intent();

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

intent.putExtra("url","http://119.3.75.95:28080/v1/Standard/V1.0_20210106.zip");//隨參url,直接傳入下載地址

intent.setAction("com.FF.ota.update.url");

sendBroadcast(intent);

c、服務器獲取url變更接口

Intent intent = new Intent();

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.putExtra("server","http://119.3.75.95:21822/v1");//隨參變更服務器server

intent.setAction("com.FF.ota.update.server");

MainActivity.this.sendBroadcast(intent);

完整服務器url實例

http://119.3.75.95:21822/v1/checkUpgrade?sn=cbc6915ec20f8efd&version=V2.0_20210107&model=F4932-R1Q_A5_Standard_HDMI&time=202101081610

附件下載

  • 名稱
  • 日期
  • 下載

提交工單

  • 描述內容越詳細,越有利于快速處理問題!
  • (帶* 必填項)

業務咨詢

  • (帶* 必填項)
主站蜘蛛池模板: 伊人精品成人久久综合软件 | 一区二区自拍 | 久久不射网| 日韩精品免费观看 | 在线观看国产视频 | 性一区 | 日韩久久久久 | 久久久久成人精品 | 在线欧美视频 | 国产三级精品片 | 在线一区二区视频 | 能看av的网站 | 99精品免费久久久久久久久 | 国产一区中文字幕 | 久久精品国产综合 | 色综合天天综合网国产成人网 | 久久网亚洲 | 黄网站在线免费看 | 欧州一区二区 | 麻豆精品国产传媒mv男同 | 国产精品视频一二区 | 成人性生交大片 | 国产精品2 | 黄色大片免费观看 | 亚洲一区二区三区免费视频 | 亚洲精品国产电影 | 黄色永久网站 | 久久久久久毛片精品免费不卡 | 红桃视频一区二区三区免费 | 六月婷婷久久 | 在线无码 | 日韩久久综合 | www久久久久 | 久久久蜜桃 | 精品视频在线观看一区二区三区 | 欧美一区二区三区电影 | 欧美3区 | 精品国产一区二区三区四区四 | 欧美日韩二区三区 | 麻豆精品国产传媒 | 欧美一区二区三区免费看 |