42BDL5057P
43
1. If you develop an apk which can download any android app, then
your apk can issue a customized intent.
2. Giving the apk name and the path it was stored. The system will
help you to install by program.
Description Intent
Parameters
Sw Update
php.intent.
action.
UPDATE_APK
filePath
The absolute file path
including the file name.
Keep
Indicate that you want
to keep the file or not
after updating. The default
value is false.
packageName
The target package
you want to launch
automatically after
updating.
activityName
The target activity
you want to launch
automatically after
updating. But if current
top activity is not
activityName, nothing
happened.
For example,
Intent intent = new Intent();
intent.setAction(“php.intent.action.UPDATE_APK”);
intent.putExtra(“filePath”, “/sdcard/Download/apk_name.apk”);
intent.putExtra(“keep”, true);
intent.putExtra(“packageName”, “com.example.apk_name”);
intent.putExtra(“activityName”, “com.example.apk_name.MainActivity”);
sendBroadcast(intent);
5.16.4. How to connect with platform Web API?
PD has a local web server to provide Web API for customer getting PD
information in JSON format.
1. APIs specifications
-
Protocol: HTTP
-
Method: GET
-
Domain: localhost
-
Port: 9988
-
URI: /platform/getinfo
2. API Request URL
-
http://localhost:9988/platform/getinfo
3. API Response
-
Status
Status
Code
Description
Success
0
Request success
Error
1
Request failure
-
Result in JSON format
• interfaces: list all of network interface’s MAC address
• family: the address-family within an IPv4 or IPv6
• mac: network interface’s MAC address
• ip: network interface’s IP address
• currentip: current IP address of device
• sn: serial number of device
• model: model name of device
• version: version of Web API
-
JSON sample
{
status: "success",
code: 0,
decsription: "success",
result:
{
"version": "1.0",
"currentip": "172.17.3.4",
"sn": "123456",
"model": "PDModelName",
"interfaces": [
{
"family": "IPv6",
"ip": "fe80::84ea:d74b:1167:aa69",
"mac": "a4:4e:31:9c:79:e0"
},
{
"family": "IPv4",
"ip": "172.17.3.4",
"mac": "a4:4e:31:9c:79:e0"
}
]
}
}
Содержание Signage Solutions 42BDL5057P
Страница 1: ...www philips com welcome 42BDL5057P V1 01 User Manual English ...
Страница 13: ...42BDL5057P xiii Step 3 ...