xwk123 commited on
Commit
339c335
·
verified ·
1 Parent(s): 4489fc9

Upload 139 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. agent_for_ui/__pycache__/agent_html_prompt.cpython-311.pyc +0 -0
  3. agent_for_ui/__pycache__/agent_html_prompt.cpython-312.pyc +0 -0
  4. agent_for_ui/__pycache__/agent_html_prompt_thought.cpython-311.pyc +0 -0
  5. agent_for_ui/__pycache__/app_list_MIUI.cpython-312.pyc +0 -0
  6. agent_for_ui/__pycache__/chatgpt.cpython-312.pyc +0 -0
  7. agent_for_ui/__pycache__/episode_pb2.cpython-311.pyc +0 -0
  8. agent_for_ui/__pycache__/main_for_ui.cpython-311.pyc +0 -0
  9. agent_for_ui/__pycache__/xml_to_html.cpython-311.pyc +0 -0
  10. agent_for_ui/__pycache__/xml_to_html.cpython-312.pyc +0 -0
  11. agent_for_ui/agent_for_api/API_list.py +277 -0
  12. agent_for_ui/agent_for_api/ApiReference.md +2801 -0
  13. agent_for_ui/agent_for_api/__pycache__/API_list.cpython-311.pyc +0 -0
  14. agent_for_ui/agent_for_api/__pycache__/API_list.cpython-312.pyc +0 -0
  15. agent_for_ui/agent_for_api/__pycache__/agent_api_prompt.cpython-311.pyc +0 -0
  16. agent_for_ui/agent_for_api/__pycache__/agent_api_prompt.cpython-312.pyc +0 -0
  17. agent_for_ui/agent_for_api/__pycache__/main_for_api.cpython-311.pyc +0 -0
  18. agent_for_ui/agent_for_api/__pycache__/main_for_api.cpython-312.pyc +0 -0
  19. agent_for_ui/agent_for_api/agent_api_prompt.py +224 -0
  20. agent_for_ui/agent_for_api/api_list.json +626 -0
  21. agent_for_ui/agent_for_api/api_test.zip +3 -0
  22. agent_for_ui/agent_for_api/api_test/1_ndk_reference.json +3 -0
  23. agent_for_ui/agent_for_api/api_test/1_reference_androidx_activity_result_contract_ActivityResultContracts.json +3 -0
  24. agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_AnimatorRes.json +3 -0
  25. agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_LayoutRes.json +3 -0
  26. agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_StyleableRes.json +3 -0
  27. agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_experimental_package-summary.json +3 -0
  28. agent_for_ui/agent_for_api/api_test/1_reference_androidx_appsearch_annotation_Document_Namespace.json +3 -0
  29. agent_for_ui/agent_for_api/api_test/1_reference_androidx_arch_core_util_package-summary.json +3 -0
  30. agent_for_ui/agent_for_api/api_test/1_reference_androidx_autofill_inline_SuggestionHintConstants.json +3 -0
  31. agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ExperimentalBenchmarkConfigApi.json +3 -0
  32. agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ExperimentalBenchmarkStateApi.json +3 -0
  33. agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ProfilerConfig_StackSampling.json +3 -0
  34. agent_for_ui/agent_for_api/api_test/1_reference_androidx_biometric_auth_AuthPromptFailureException.json +3 -0
  35. agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_extensions_package-summary.json +3 -0
  36. agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_video_VideoRecordEvent_Start.json +3 -0
  37. agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_view_transform_OutputTransform.json +3 -0
  38. agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_view_video_package-summary.json +3 -0
  39. agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_classes.json +3 -0
  40. agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_core_motion_utils_TimeCycleSplineSet_Sort.json +3 -0
  41. agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_helper_widget_package-summary.json +3 -0
  42. agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_packages.json +3 -0
  43. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_graphics_drawable_package-summary.json +3 -0
  44. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_location_altitude_package-summary.json +3 -0
  45. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_net_ParseException.json +3 -0
  46. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_os_OperationCanceledException.json +3 -0
  47. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_performance_testing_package-summary.json +3 -0
  48. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_role_package-summary.json +3 -0
  49. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_service_quicksettings_package-summary.json +3 -0
  50. agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_telecom_CallControlResult.json +3 -0
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ agent_for_ui/logcat_output.txt filter=lfs diff=lfs merge=lfs -text
agent_for_ui/__pycache__/agent_html_prompt.cpython-311.pyc ADDED
Binary file (59.1 kB). View file
 
agent_for_ui/__pycache__/agent_html_prompt.cpython-312.pyc ADDED
Binary file (50.3 kB). View file
 
agent_for_ui/__pycache__/agent_html_prompt_thought.cpython-311.pyc ADDED
Binary file (42.3 kB). View file
 
agent_for_ui/__pycache__/app_list_MIUI.cpython-312.pyc ADDED
Binary file (41.8 kB). View file
 
agent_for_ui/__pycache__/chatgpt.cpython-312.pyc ADDED
Binary file (2.14 kB). View file
 
agent_for_ui/__pycache__/episode_pb2.cpython-311.pyc ADDED
Binary file (3.67 kB). View file
 
agent_for_ui/__pycache__/main_for_ui.cpython-311.pyc ADDED
Binary file (39 kB). View file
 
agent_for_ui/__pycache__/xml_to_html.cpython-311.pyc ADDED
Binary file (4.6 kB). View file
 
agent_for_ui/__pycache__/xml_to_html.cpython-312.pyc ADDED
Binary file (4.77 kB). View file
 
agent_for_ui/agent_for_api/API_list.py ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ usr_api_list = '''
2
+ The following api list will be listed in this format: ADB Command - Function Description - Parameter Information
3
+ ------------
4
+ api list:
5
+ {
6
+ {
7
+ "ADB Command": "adb shell am start -n com.miui.calculator/.cal.CalculatorActivity",
8
+ "Function Description": "启动计算器主界面",
9
+ "Parameter Information": "No additional parameters required."
10
+ },
11
+ {
12
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.SCIENTIFIC_MODE",
13
+ "Function Description": "启动科学计算器模式",
14
+ "Parameter Information": "No additional parameters required."
15
+ },
16
+ {
17
+ "ADB Command": "adb shell am start -n com.miui.calculator/.convert.CurrencyActivity",
18
+ "Function Description": "打开货币转换功能",
19
+ "Parameter Information": "No additional parameters required."
20
+ },
21
+ {
22
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.TAX",
23
+ "Function Description": "打开房贷计算器",
24
+ "Parameter Information": "No additional parameters required."
25
+ },
26
+ {
27
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.MORTGAGE",
28
+ "Function Description": "打开税务计算器",
29
+ "Parameter Information": "No additional parameters required."
30
+ }
31
+ }
32
+ '''
33
+ usr_api_list_1 = '''
34
+
35
+ The following api list will be listed in this format: ADB Command - Function Description - Parameter Information
36
+ If the current step is completed and you need to return, you should give priority to return to the previous step/return to the main interface in the adb command.
37
+
38
+ api list:
39
+ ------------
40
+ ADB Command: adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME
41
+ Function Description: Launches the home screen.
42
+ Parameter Information: No additional parameters required.
43
+
44
+ ADB Command: adb shell am start -n com.traveloka.android/.appentry.splash.SplashActivity
45
+ Function Description: Open the traveloka app
46
+ Parameter Information: No additional parameters required.
47
+
48
+ ADB Command: adb shell input keyevent KEYCODE_HOME
49
+ Function Description: go to the home screen
50
+ Parameter Information: No additional parameters required.
51
+
52
+ ADB Command: adb shell am start -a android.intent.action.SET_ALARM --ei android.intent.extra.alarm.HOUR <x> --ei android.intent.extra.alarm.MINUTES <y>
53
+ Function Description: Triggers an intent to open the alarm clock application with a pre-filled time for setting a new alarm.
54
+ Parameter Information: Replace <x> with the hour and <y> with the minutes for the alarm time. For example, for an alarm set at 7:15, <x> would be 7 and <y> would be 15.
55
+
56
+ ADB Command: adb shell am start -n com.channel.weather.forecast/com.mytools.weather.ui.home.MainActivity
57
+ Function Description: Open the weather app
58
+ Parameter Information: No additional parameters required.
59
+
60
+ ADB Command: adb shell input keyevent KEYCODE_BACK
61
+ Function Description: Return to previous page
62
+ Parameter Information: No additional parameters required.
63
+
64
+ ADB Command: adb shell am start -a android.intent.action.WEB_SEARCH
65
+ Function Description: Open the Google Search app
66
+ Parameter Information: No additional parameters required.
67
+
68
+ ADB Command: adb shell am start -a android.settings.SETTINGS
69
+ Function Description: Opens the system settings.
70
+ Parameter Information: No additional parameters required.
71
+
72
+ ADB Command: adb shell am start -a android.settings.WIRELESS_SETTINGS
73
+ Function Description: Opens wireless and network settings.
74
+ Parameter Information: No additional parameters required.
75
+
76
+ ADB Command: adb shell am start -d package:<package_name> -a android.settings.APPLICATION_DETAILS_SETTINGS
77
+ Function Description: Opens the application information page.
78
+ Parameter Information: <package_name> - Specific package name of the app.
79
+
80
+ ADB Command: adb shell am broadcast -a clipper.set -e text "<text_body>"
81
+ Function Description: Sends text to the clipboard.
82
+ Parameter Information: <text_body> - Text to be sent to the clipboard.
83
+
84
+ ADB Command: adb shell am start -n com.google.android.contacts/com.android.contacts.activities.PeopleActivity
85
+ Function Description: Opens the contacts app.
86
+ Parameter Information: Requires contact's URI.
87
+
88
+ ADB Command: adb shell am start -a android.intent.action.SENDTO -d sms:<phone_number> --es sms_body "<message_body>"
89
+ Function Description: Sends an SMS.
90
+ Parameter Information: <phone_number> - Recipient's phone number, <message_body> - SMS text.
91
+
92
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d file://<file_path> -t <mime_type>
93
+ Function Description: Plays a multimedia file.
94
+ Parameter Information: <file_path> - URI of the file, <mime_type> - MIME type of the file.
95
+
96
+ ADB Command: adb shell am start -n com.google.android.GoogleCamera/com.android.camera.CameraLauncher
97
+ Function Description: Opens the camera.
98
+ Parameter Information: No additional parameters required.
99
+
100
+ ADB Command: adb shell am start -a android.intent.action.DIAL -d tel:<phone_number>
101
+ Function Description: Opens the dialer with a specific number.
102
+ Parameter Information: <phone_number> - Phone number to dial.
103
+
104
+ ADB Command: adb shell am start -a android.media.action.STILL_IMAGE_CAMERA
105
+ Function Description: Takes a photo and saves it.
106
+ Parameter Information: No additional parameters required.
107
+
108
+ ADB Command: adb shell am start -a android.media.action.VIDEO_CAMERA
109
+ Function Description: Records a video.
110
+ Parameter Information: No additional parameters required.
111
+
112
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d <http://www.example.com>
113
+ Function Description: Opens the browser and visits a web page.
114
+ Parameter Information: URL of the web page.
115
+
116
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d geo:37.7749,-122.4194
117
+ Function Description: Opens maps and locates a specific position.
118
+ Parameter Information: Geographic coordinates.
119
+
120
+ ADB Command: adb shell settings put global airplane_mode_on 0; adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
121
+ Function Description: Enables airplane mode.
122
+ Parameter Information: No additional parameters required.
123
+
124
+ ADB Command: adb shell am start -n com.google.android.calendar/com.android.calendar.AllInOneActivity
125
+ Function Description: Opens the calendar app.
126
+ Parameter Information: No additional parameters required.
127
+
128
+ ADB Command: adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.item/event
129
+ Function Description: Creates a new event in the calendar.
130
+ Parameter Information: No additional parameters required.
131
+
132
+ ADB Command: adb shell am start -a android.intent.action.SHOW_ALARMS
133
+ Function Description: Opens the system alarm.
134
+ Parameter Information: No additional parameters required.
135
+
136
+ ADB Command: adb shell am start -a android.intent.action.SET_TIMER
137
+ Function Description: Opens the system timer.
138
+ Parameter Information: No additional parameters required.
139
+
140
+ ADB Command: adb shell am start -n com.google.android.apps.photos/com.google.android.apps.photos.home.HomeActivity
141
+ Function Description: Opens the gallery.
142
+ Parameter Information: No additional parameters required.
143
+
144
+ ADB Command: adb shell am start -n com.google.android.calculator/com.android.calculator2.Calculator
145
+ Function Description: Opens the calculator.
146
+ Parameter Information: No additional parameters required.
147
+
148
+ ADB Command: adb shell am start -a android.intent.action.MUSIC_PLAYER
149
+ Function Description: Opens the music player.
150
+ Parameter Information: No additional parameters required.
151
+
152
+ ADB Command: adb shell am start -n com.google.android.gm/com.google.android.gm.ConversationListActivityGmail
153
+ Function Description: Opens the email app.
154
+ Parameter Information: No additional parameters required.
155
+
156
+ ADB Command: adb shell am start -a android.intent.action.MAIN -c android.intent.category.APP_MESSAGING
157
+ Function Description: Opens the SMS app.
158
+ Parameter Information: No additional parameters required.
159
+
160
+ ADB Command: adb shell am start -a android.intent.action.VIEW -t video/*
161
+ Function Description: Opens the video player.
162
+ Parameter Information: No additional parameters required.
163
+
164
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d geo:0,0?q=Xiaomi+Technology+Park+Beijing
165
+ Function Description: Uses map for location (Xiaomi Technology Park Beijing example).
166
+ Parameter Information: Location query.
167
+
168
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d file:///sdcard/Download/video.mp4 -t video/mp4
169
+ Function Description: Opens a specific video.
170
+ Parameter Information: <file_path> - File path of the video, <mime_type> - MIME type of the file.
171
+
172
+ ADB Command: adb shell am start -a android.intent.action.VIEW -d file://<file_path> -t <mime_type>
173
+ Function Description: Opens a file.
174
+ Parameter Information: <file_path> - Absolute path of the target file, <mime_type> - MIME type of the file.
175
+
176
+ ADB Command: adb shell screencap -p /sdcard/screenshot.png
177
+ Function Description: Takes a screenshot and saves it.
178
+ Parameter Information: No additional parameters required.
179
+
180
+ ADB Command: adb shell screenrecord <path>
181
+ Function Description: Records the screen.
182
+ Parameter Information: <path> - Save path for the screen recording.
183
+
184
+ ADB Command: adb shell ls <folder_path> | wc -l
185
+ Function Description: Counts the number of files in a folder.
186
+ Parameter Information: <folder_path> - Path of the folder.
187
+ '''
188
+
189
+ # 创建备忘录:
190
+ # adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.item/event -e title "<title>" -e begin "<starttime>" -e end "<endtime>" --ei allDay 0 --es description "<task_description>" --ez hasAlarm 1
191
+ system_api_list = '''
192
+ 杀死进程:
193
+ adb shell am force-stop <package_name>
194
+
195
+ 清除应用数据:
196
+ adb shell pm clear <package_name>
197
+
198
+ 重启设备:
199
+ adb shell reboot
200
+
201
+ 清理内存(需要root权限):
202
+ adb shell am send-trim-memory <package_name> <level>
203
+
204
+ 安装应用:
205
+ adb install <path_to_apk>
206
+
207
+ 卸载应用:
208
+ adb uninstall <package_name>
209
+
210
+ 查看前台��用和服务:
211
+ adb shell dumpsys activity services <package_name>
212
+
213
+ 更改系统设置值(例如,关闭自动旋转):
214
+ adb shell settings put system accelerometer_rotation 0
215
+
216
+ 获取设备的电池状态:
217
+ adb shell dumpsys battery
218
+
219
+ 设置设备进入休眠状态:
220
+ adb shell input keyevent KEYCODE_SLEEP
221
+
222
+ 唤醒设备:
223
+ adb shell input keyevent KEYCODE_WAKEUP
224
+
225
+ 查询某个应用的详细信息:
226
+ adb shell dumpsys package <package_name>
227
+
228
+ 开启或关闭WiFi(需要root权限):
229
+ adb shell svc wifi enable
230
+ adb shell svc wifi disable
231
+
232
+ 数据流量开关(需要root权限):
233
+ adb shell svc data enable
234
+ adb shell svc data disable
235
+
236
+ 开启或关闭蓝牙(需要root权限):
237
+ adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
238
+ adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISABLE
239
+
240
+ 更改设备的屏幕亮度(数值为0-255):
241
+ adb shell settings put system screen_brightness <brightness_value>
242
+
243
+ 模拟电池充电状态(需要root权限):
244
+ adb shell dumpsys battery set status <status_code>
245
+
246
+ 模拟电池电量变化(需要root权限):
247
+ adb shell dumpsys battery set level <level>
248
+
249
+ 查询当前的内存使用情况:
250
+ adb shell dumpsys meminfo
251
+
252
+ 查询特定应用的内存使用情况:
253
+ adb shell dumpsys meminfo <package_name>
254
+
255
+ 获取系统广播列表:
256
+ adb shell dumpsys activity broadcasts
257
+
258
+ 获取当前的CPU使用情况:
259
+ adb shell dumpsys cpuinfo
260
+
261
+ 查看当前网络状态:
262
+ adb shell dumpsys netstats
263
+
264
+ 查看电池统计信息:
265
+ adb shell dumpsys batterystats
266
+
267
+ 查看系统服务列表:
268
+ adb shell service list
269
+ '''
270
+ # 还没有测试,不确定,多是java工具包,
271
+ non_standard_api_list = '''
272
+ 看壁纸dump信息
273
+ adb shell dumpsys activity service com.miui.miwallpaper/.wallpaperservice.ImageWallpaper
274
+ adb shell dumpsys activity service com.miui.miwallpaper/.wallpaperservice.MiuiKeyguardPictorialWallpaper
275
+
276
+
277
+ '''
agent_for_ui/agent_for_api/ApiReference.md ADDED
@@ -0,0 +1,2801 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ More detailed API Help [here](http://www.mithril.com.au/android/doc)
2
+
3
+ **ActivityResultFacade**
4
+ * [setResultBoolean](#setResultBoolean.md)
5
+ * [setResultBooleanArray](#setResultBooleanArray.md)
6
+ * [setResultByte](#setResultByte.md)
7
+ * [setResultByteArray](#setResultByteArray.md)
8
+ * [setResultChar](#setResultChar.md)
9
+ * [setResultCharArray](#setResultCharArray.md)
10
+ * [setResultDouble](#setResultDouble.md)
11
+ * [setResultDoubleArray](#setResultDoubleArray.md)
12
+ * [setResultFloat](#setResultFloat.md)
13
+ * [setResultFloatArray](#setResultFloatArray.md)
14
+ * [setResultInteger](#setResultInteger.md)
15
+ * [setResultIntegerArray](#setResultIntegerArray.md)
16
+ * [setResultLong](#setResultLong.md)
17
+ * [setResultLongArray](#setResultLongArray.md)
18
+ * [setResultSerializable](#setResultSerializable.md)
19
+ * [setResultShort](#setResultShort.md)
20
+ * [setResultShortArray](#setResultShortArray.md)
21
+ * [setResultString](#setResultString.md)
22
+ * [setResultStringArray](#setResultStringArray.md)
23
+ **AndroidFacade**
24
+ * [environment](#environment.md)
25
+ * [getClipboard](#getClipboard.md)
26
+ * [getConstants](#getConstants.md)
27
+ * [getInput](#getInput.md)
28
+ * [getIntent](#getIntent.md)
29
+ * [getPackageVersion](#getPackageVersion.md)
30
+ * [getPackageVersionCode](#getPackageVersionCode.md)
31
+ * [getPassword](#getPassword.md)
32
+ * [log](#log.md)
33
+ * [makeIntent](#makeIntent.md)
34
+ * [makeToast](#makeToast.md)
35
+ * [notify](#notify.md)
36
+ * [requiredVersion](#requiredVersion.md)
37
+ * [sendBroadcast](#sendBroadcast.md)
38
+ * [sendBroadcastIntent](#sendBroadcastIntent.md)
39
+ * [sendEmail](#sendEmail.md)
40
+ * [setClipboard](#setClipboard.md)
41
+ * [startActivity](#startActivity.md)
42
+ * [startActivityForResult](#startActivityForResult.md)
43
+ * [startActivityForResultIntent](#startActivityForResultIntent.md)
44
+ * [startActivityIntent](#startActivityIntent.md)
45
+ * [vibrate](#vibrate.md)
46
+ **ApplicationManagerFacade**
47
+ * [forceStopPackage](#forceStopPackage.md)
48
+ * [getLaunchableApplications](#getLaunchableApplications.md)
49
+ * [getRunningPackages](#getRunningPackages.md)
50
+ * [launch](#launch.md)
51
+ **BatteryManagerFacade**
52
+ * [batteryCheckPresent](#batteryCheckPresent.md)
53
+ * [batteryGetHealth](#batteryGetHealth.md)
54
+ * [batteryGetLevel](#batteryGetLevel.md)
55
+ * [batteryGetPlugType](#batteryGetPlugType.md)
56
+ * [batteryGetStatus](#batteryGetStatus.md)
57
+ * [batteryGetTechnology](#batteryGetTechnology.md)
58
+ * [batteryGetTemperature](#batteryGetTemperature.md)
59
+ * [batteryGetVoltage](#batteryGetVoltage.md)
60
+ * [batteryStartMonitoring](#batteryStartMonitoring.md)
61
+ * [batteryStopMonitoring](#batteryStopMonitoring.md)
62
+ * [readBatteryData](#readBatteryData.md)
63
+ **BluetoothFacade** Requires API Level 5.
64
+ * [bluetoothAccept](#bluetoothAccept.md)
65
+ * [bluetoothActiveConnections](#bluetoothActiveConnections.md)
66
+ * [bluetoothConnect](#bluetoothConnect.md)
67
+ * [bluetoothDiscoveryCancel](#bluetoothDiscoveryCancel.md)
68
+ * [bluetoothDiscoveryStart](#bluetoothDiscoveryStart.md)
69
+ * [bluetoothGetConnectedDeviceName](#bluetoothGetConnectedDeviceName.md)
70
+ * [bluetoothGetLocalAddress](#bluetoothGetLocalAddress.md)
71
+ * [bluetoothGetLocalName](#bluetoothGetLocalName.md)
72
+ * [bluetoothGetRemoteDeviceName](#bluetoothGetRemoteDeviceName.md)
73
+ * [bluetoothGetScanMode](#bluetoothGetScanMode.md)
74
+ * [bluetoothIsDiscovering](#bluetoothIsDiscovering.md)
75
+ * [bluetoothMakeDiscoverable](#bluetoothMakeDiscoverable.md)
76
+ * [bluetoothRead](#bluetoothRead.md)
77
+ * [bluetoothReadBinary](#bluetoothReadBinary.md)
78
+ * [bluetoothReadLine](#bluetoothReadLine.md)
79
+ * [bluetoothReadReady](#bluetoothReadReady.md)
80
+ * [bluetoothSetLocalName](#bluetoothSetLocalName.md)
81
+ * [bluetoothStop](#bluetoothStop.md)
82
+ * [bluetoothWrite](#bluetoothWrite.md)
83
+ * [bluetoothWriteBinary](#bluetoothWriteBinary.md)
84
+ * [checkBluetoothState](#checkBluetoothState.md)
85
+ * [toggleBluetoothState](#toggleBluetoothState.md)
86
+ **CameraFacade**
87
+ * [cameraCapturePicture](#cameraCapturePicture.md)
88
+ * [cameraInteractiveCapturePicture](#cameraInteractiveCapturePicture.md)
89
+ **CommonIntentsFacade**
90
+ * [pick](#pick.md)
91
+ * [scanBarcode](#scanBarcode.md)
92
+ * [search](#search.md)
93
+ * [view](#view.md)
94
+ * [viewContacts](#viewContacts.md)
95
+ * [viewHtml](#viewHtml.md)
96
+ * [viewMap](#viewMap.md)
97
+ **ContactsFacade**
98
+ * [contactsGet](#contactsGet.md)
99
+ * [contactsGetAttributes](#contactsGetAttributes.md)
100
+ * [contactsGetById](#contactsGetById.md)
101
+ * [contactsGetCount](#contactsGetCount.md)
102
+ * [contactsGetIds](#contactsGetIds.md)
103
+ * [pickContact](#pickContact.md)
104
+ * [pickPhone](#pickPhone.md)
105
+ * [queryAttributes](#queryAttributes.md)
106
+ * [queryContent](#queryContent.md)
107
+ **EventFacade**
108
+ * [eventClearBuffer](#eventClearBuffer.md)
109
+ * [eventGetBrodcastCategories](#eventGetBrodcastCategories.md)
110
+ * [eventPoll](#eventPoll.md)
111
+ * [eventPost](#eventPost.md)
112
+ * [eventRegisterForBroadcast](#eventRegisterForBroadcast.md)
113
+ * [eventUnregisterForBroadcast](#eventUnregisterForBroadcast.md)
114
+ * [eventWait](#eventWait.md)
115
+ * [eventWaitFor](#eventWaitFor.md)
116
+ * [postEvent](#postEvent.md)
117
+ * [receiveEvent](#receiveEvent.md)
118
+ * [startEventDispatcher](#startEventDispatcher.md)
119
+ * [stopEventDispatcher](#stopEventDispatcher.md)
120
+ * [waitForEvent](#waitForEvent.md)
121
+ **LocationFacade**
122
+ * [geocode](#geocode.md)
123
+ * [getLastKnownLocation](#getLastKnownLocation.md)
124
+ * [locationProviderEnabled](#locationProviderEnabled.md)
125
+ * [locationProviders](#locationProviders.md)
126
+ * [readLocation](#readLocation.md)
127
+ * [startLocating](#startLocating.md)
128
+ * [stopLocating](#stopLocating.md)
129
+ **MediaPlayerFacade**
130
+ * [mediaIsPlaying](#mediaIsPlaying.md)
131
+ * [mediaPlay](#mediaPlay.md)
132
+ * [mediaPlayClose](#mediaPlayClose.md)
133
+ * [mediaPlayInfo](#mediaPlayInfo.md)
134
+ * [mediaPlayList](#mediaPlayList.md)
135
+ * [mediaPlayPause](#mediaPlayPause.md)
136
+ * [mediaPlaySeek](#mediaPlaySeek.md)
137
+ * [mediaPlaySetLooping](#mediaPlaySetLooping.md)
138
+ * [mediaPlayStart](#mediaPlayStart.md)
139
+ **MediaRecorderFacade**
140
+ * [recorderCaptureVideo](#recorderCaptureVideo.md)
141
+ * [recorderStartMicrophone](#recorderStartMicrophone.md)
142
+ * [recorderStartVideo](#recorderStartVideo.md)
143
+ * [recorderStop](#recorderStop.md)
144
+ * [startInteractiveVideoRecording](#startInteractiveVideoRecording.md)
145
+ **PhoneFacade**
146
+ * [checkNetworkRoaming](#checkNetworkRoaming.md)
147
+ * [getCellLocation](#getCellLocation.md)
148
+ * [getDeviceId](#getDeviceId.md)
149
+ * [getDeviceSoftwareVersion](#getDeviceSoftwareVersion.md)
150
+ * [getLine1Number](#getLine1Number.md)
151
+ * [getNeighboringCellInfo](#getNeighboringCellInfo.md)
152
+ * [getNetworkOperator](#getNetworkOperator.md)
153
+ * [getNetworkOperatorName](#getNetworkOperatorName.md)
154
+ * [getNetworkType](#getNetworkType.md)
155
+ * [getPhoneType](#getPhoneType.md)
156
+ * [getSimCountryIso](#getSimCountryIso.md)
157
+ * [getSimOperator](#getSimOperator.md)
158
+ * [getSimOperatorName](#getSimOperatorName.md)
159
+ * [getSimSerialNumber](#getSimSerialNumber.md)
160
+ * [getSimState](#getSimState.md)
161
+ * [getSubscriberId](#getSubscriberId.md)
162
+ * [getVoiceMailAlphaTag](#getVoiceMailAlphaTag.md)
163
+ * [getVoiceMailNumber](#getVoiceMailNumber.md)
164
+ * [phoneCall](#phoneCall.md)
165
+ * [phoneCallNumber](#phoneCallNumber.md)
166
+ * [phoneDial](#phoneDial.md)
167
+ * [phoneDialNumber](#phoneDialNumber.md)
168
+ * [readPhoneState](#readPhoneState.md)
169
+ * [startTrackingPhoneState](#startTrackingPhoneState.md)
170
+ * [stopTrackingPhoneState](#stopTrackingPhoneState.md)
171
+ **PreferencesFacade**
172
+ * [prefGetAll](#prefGetAll.md)
173
+ * [prefGetValue](#prefGetValue.md)
174
+ * [prefPutValue](#prefPutValue.md)
175
+ **SensorManagerFacade**
176
+ * [readSensors](#readSensors.md)
177
+ * [sensorsGetAccuracy](#sensorsGetAccuracy.md)
178
+ * [sensorsGetLight](#sensorsGetLight.md)
179
+ * [sensorsReadAccelerometer](#sensorsReadAccelerometer.md)
180
+ * [sensorsReadMagnetometer](#sensorsReadMagnetometer.md)
181
+ * [sensorsReadOrientation](#sensorsReadOrientation.md)
182
+ * [startSensing](#startSensing.md)
183
+ * [startSensingThreshold](#startSensingThreshold.md)
184
+ * [startSensingTimed](#startSensingTimed.md)
185
+ * [stopSensing](#stopSensing.md)
186
+ **SettingsFacade**
187
+ * [checkAirplaneMode](#checkAirplaneMode.md)
188
+ * [checkRingerSilentMode](#checkRingerSilentMode.md)
189
+ * [checkScreenOn](#checkScreenOn.md)
190
+ * [getMaxMediaVolume](#getMaxMediaVolume.md)
191
+ * [getMaxRingerVolume](#getMaxRingerVolume.md)
192
+ * [getMediaVolume](#getMediaVolume.md)
193
+ * [getRingerVolume](#getRingerVolume.md)
194
+ * [getScreenBrightness](#getScreenBrightness.md)
195
+ * [getScreenTimeout](#getScreenTimeout.md)
196
+ * [getVibrateMode](#getVibrateMode.md)
197
+ * [setMediaVolume](#setMediaVolume.md)
198
+ * [setRingerVolume](#setRingerVolume.md)
199
+ * [setScreenBrightness](#setScreenBrightness.md)
200
+ * [setScreenTimeout](#setScreenTimeout.md)
201
+ * [toggleAirplaneMode](#toggleAirplaneMode.md)
202
+ * [toggleRingerSilentMode](#toggleRingerSilentMode.md)
203
+ * [toggleVibrateMode](#toggleVibrateMode.md)
204
+ **SignalStrengthFacade** Requires API Level 7.
205
+ * [readSignalStrengths](#readSignalStrengths.md)
206
+ * [startTrackingSignalStrengths](#startTrackingSignalStrengths.md)
207
+ * [stopTrackingSignalStrengths](#stopTrackingSignalStrengths.md)
208
+ **SmsFacade**
209
+ * [smsDeleteMessage](#smsDeleteMessage.md)
210
+ * [smsGetAttributes](#smsGetAttributes.md)
211
+ * [smsGetMessageById](#smsGetMessageById.md)
212
+ * [smsGetMessageCount](#smsGetMessageCount.md)
213
+ * [smsGetMessageIds](#smsGetMessageIds.md)
214
+ * [smsGetMessages](#smsGetMessages.md)
215
+ * [smsMarkMessageRead](#smsMarkMessageRead.md)
216
+ * [smsSend](#smsSend.md)
217
+ **SpeechRecognitionFacade**
218
+ * [recognizeSpeech](#recognizeSpeech.md)
219
+ **TextToSpeechFacade** Requires API Level 4.
220
+ * [ttsIsSpeaking](#ttsIsSpeaking.md)
221
+ * [ttsSpeak](#ttsSpeak.md)
222
+ **ToneGeneratorFacade**
223
+ * [generateDtmfTones](#generateDtmfTones.md)
224
+ **UiFacade**
225
+ * [addContextMenuItem](#addContextMenuItem.md)
226
+ * [addOptionsMenuItem](#addOptionsMenuItem.md)
227
+ * [clearContextMenu](#clearContextMenu.md)
228
+ * [clearOptionsMenu](#clearOptionsMenu.md)
229
+ * [dialogCreateAlert](#dialogCreateAlert.md)
230
+ * [dialogCreateDatePicker](#dialogCreateDatePicker.md)
231
+ * [dialogCreateHorizontalProgress](#dialogCreateHorizontalProgress.md)
232
+ * [dialogCreateInput](#dialogCreateInput.md)
233
+ * [dialogCreatePassword](#dialogCreatePassword.md)
234
+ * [dialogCreateSeekBar](#dialogCreateSeekBar.md)
235
+ * [dialogCreateSpinnerProgress](#dialogCreateSpinnerProgress.md)
236
+ * [dialogCreateTimePicker](#dialogCreateTimePicker.md)
237
+ * [dialogDismiss](#dialogDismiss.md)
238
+ * [dialogGetInput](#dialogGetInput.md)
239
+ * [dialogGetPassword](#dialogGetPassword.md)
240
+ * [dialogGetResponse](#dialogGetResponse.md)
241
+ * [dialogGetSelectedItems](#dialogGetSelectedItems.md)
242
+ * [dialogSetCurrentProgress](#dialogSetCurrentProgress.md)
243
+ * [dialogSetItems](#dialogSetItems.md)
244
+ * [dialogSetMaxProgress](#dialogSetMaxProgress.md)
245
+ * [dialogSetMultiChoiceItems](#dialogSetMultiChoiceItems.md)
246
+ * [dialogSetNegativeButtonText](#dialogSetNegativeButtonText.md)
247
+ * [dialogSetNeutralButtonText](#dialogSetNeutralButtonText.md)
248
+ * [dialogSetPositiveButtonText](#dialogSetPositiveButtonText.md)
249
+ * [dialogSetSingleChoiceItems](#dialogSetSingleChoiceItems.md)
250
+ * [dialogShow](#dialogShow.md)
251
+ * [fullDismiss](#fullDismiss.md)
252
+ * [fullKeyOverride](#fullKeyOverride.md)
253
+ * [fullQuery](#fullQuery.md)
254
+ * [fullQueryDetail](#fullQueryDetail.md)
255
+ * [fullSetList](#fullSetList.md)
256
+ * [fullSetProperty](#fullSetProperty.md)
257
+ * [fullSetTitle](#fullSetTitle.md)
258
+ * [fullShow](#fullShow.md)
259
+ * [webViewShow](#webViewShow.md)
260
+ **WakeLockFacade**
261
+ * [wakeLockAcquireBright](#wakeLockAcquireBright.md)
262
+ * [wakeLockAcquireDim](#wakeLockAcquireDim.md)
263
+ * [wakeLockAcquireFull](#wakeLockAcquireFull.md)
264
+ * [wakeLockAcquirePartial](#wakeLockAcquirePartial.md)
265
+ * [wakeLockRelease](#wakeLockRelease.md)
266
+ **WebCamFacade** Requires API Level 8.
267
+ * [cameraStartPreview](#cameraStartPreview.md)
268
+ * [cameraStopPreview](#cameraStopPreview.md)
269
+ * [webcamAdjustQuality](#webcamAdjustQuality.md)
270
+ * [webcamStart](#webcamStart.md)
271
+ * [webcamStop](#webcamStop.md)
272
+ **WifiFacade**
273
+ * [checkWifiState](#checkWifiState.md)
274
+ * [toggleWifiState](#toggleWifiState.md)
275
+ * [wifiDisconnect](#wifiDisconnect.md)
276
+ * [wifiGetConnectionInfo](#wifiGetConnectionInfo.md)
277
+ * [wifiGetScanResults](#wifiGetScanResults.md)
278
+ * [wifiLockAcquireFull](#wifiLockAcquireFull.md)
279
+ * [wifiLockAcquireScanOnly](#wifiLockAcquireScanOnly.md)
280
+ * [wifiLockRelease](#wifiLockRelease.md)
281
+ * [wifiReassociate](#wifiReassociate.md)
282
+ * [wifiReconnect](#wifiReconnect.md)
283
+ * [wifiStartScan](#wifiStartScan.md)
284
+
285
+
286
+ ### <sub>addContextMenuItem</sub> ###
287
+ ```
288
+ addContextMenuItem(
289
+ String label: label for this menu item,
290
+ String event: event that will be generated on menu item click,
291
+ Object eventData[optional])
292
+
293
+ Adds a new item to context menu.
294
+ ```
295
+
296
+ ### <sub>addOptionsMenuItem</sub> ###
297
+ ```
298
+ addOptionsMenuItem(
299
+ String label: label for this menu item,
300
+ String event: event that will be generated on menu item click,
301
+ Object eventData[optional],
302
+ String iconName[optional]: Android system menu icon, see
303
+ http://developer.android.com/reference/android/R.drawable.html)
304
+
305
+ Adds a new item to options menu.
306
+ ```
307
+
308
+ ### <sub>batteryCheckPresent</sub> ###
309
+ ```
310
+ batteryCheckPresent()
311
+
312
+ Returns the most recently received battery presence data.
313
+
314
+ Requires API Level 5.
315
+ ```
316
+
317
+ ### <sub>batteryGetHealth</sub> ###
318
+ ```
319
+ batteryGetHealth()
320
+
321
+ Returns the most recently received battery health data:
322
+ 1 - unknown;
323
+ 2 - good;
324
+ 3 - overheat;
325
+ 4 - dead;
326
+ 5 - over voltage;
327
+ 6 - unspecified failure;
328
+ ```
329
+
330
+ ### <sub>batteryGetLevel</sub> ###
331
+ ```
332
+ batteryGetLevel()
333
+
334
+ Returns the most recently received battery level (percentage).
335
+
336
+ Requires API Level 5.
337
+ ```
338
+
339
+ ### <sub>batteryGetPlugType</sub> ###
340
+ ```
341
+ batteryGetPlugType()
342
+
343
+ Returns the most recently received plug type data:
344
+ -1 - unknown
345
+ 0 - unplugged;
346
+ 1 - power source is an AC charger
347
+ 2 - power source is a USB port
348
+ ```
349
+
350
+ ### <sub>batteryGetStatus</sub> ###
351
+ ```
352
+ batteryGetStatus()
353
+
354
+ Returns the most recently received battery status data:
355
+ 1 - unknown;
356
+ 2 - charging;
357
+ 3 - discharging;
358
+ 4 - not charging;
359
+ 5 - full;
360
+ ```
361
+
362
+ ### <sub>batteryGetTechnology</sub> ###
363
+ ```
364
+ batteryGetTechnology()
365
+
366
+ Returns the most recently received battery technology data.
367
+
368
+ Requires API Level 5.
369
+ ```
370
+
371
+ ### <sub>batteryGetTemperature</sub> ###
372
+ ```
373
+ batteryGetTemperature()
374
+
375
+ Returns the most recently received battery temperature.
376
+
377
+ Requires API Level 5.
378
+ ```
379
+
380
+ ### <sub>batteryGetVoltage</sub> ###
381
+ ```
382
+ batteryGetVoltage()
383
+
384
+ Returns the most recently received battery voltage.
385
+
386
+ Requires API Level 5.
387
+ ```
388
+
389
+ ### <sub>batteryStartMonitoring</sub> ###
390
+ ```
391
+ batteryStartMonitoring()
392
+
393
+ Starts tracking battery state.
394
+
395
+ Generates "battery" events.
396
+ ```
397
+
398
+ ### <sub>batteryStopMonitoring</sub> ###
399
+ ```
400
+ batteryStopMonitoring()
401
+
402
+ Stops tracking battery state.
403
+ ```
404
+
405
+ ### <sub>bluetoothAccept</sub> ###
406
+ ```
407
+ bluetoothAccept(
408
+ String uuid[optional, default 457807c0-4897-11df-9879-0800200c9a66],
409
+ Integer timeout[optional, default 0]: How long to wait for a new connection, 0
410
+ is wait for ever)
411
+
412
+ Listens for and accepts a Bluetooth connection. Blocks until the connection is
413
+ established or fails.
414
+
415
+ Requires API Level 5.
416
+ ```
417
+
418
+ ### <sub>bluetoothActiveConnections</sub> ###
419
+ ```
420
+ bluetoothActiveConnections()
421
+
422
+ Returns active Bluetooth connections.
423
+
424
+ Requires API Level 5.
425
+ ```
426
+
427
+ ### <sub>bluetoothConnect</sub> ###
428
+ ```
429
+ bluetoothConnect(
430
+ String uuid[optional, default 457807c0-4897-11df-9879-0800200c9a66]: The UUID
431
+ passed here must match the UUID used by the server device.,
432
+ String address[optional]: The user will be presented with a list of discovered
433
+ devices to choose from if an address is not provided.)
434
+
435
+ Connect to a device over Bluetooth. Blocks until the connection is established
436
+ or fails.
437
+
438
+ Returns:
439
+ True if the connection was established successfully.
440
+
441
+ Requires API Level 5.
442
+ ```
443
+
444
+ ### <sub>bluetoothDiscoveryCancel</sub> ###
445
+ ```
446
+ bluetoothDiscoveryCancel()
447
+
448
+ Cancel the current device discovery process.
449
+
450
+ Returns:
451
+ true on success, false on error
452
+
453
+ Requires API Level 5.
454
+ ```
455
+
456
+ ### <sub>bluetoothDiscoveryStart</sub> ###
457
+ ```
458
+ bluetoothDiscoveryStart()
459
+
460
+ Start the remote device discovery process.
461
+
462
+ Returns:
463
+ true on success, false on error
464
+
465
+ Requires API Level 5.
466
+ ```
467
+
468
+ ### <sub>bluetoothGetConnectedDeviceName</sub> ###
469
+ ```
470
+ bluetoothGetConnectedDeviceName(
471
+ String connID[optional, default null]: Connection id)
472
+
473
+ Returns the name of the connected device.
474
+
475
+ Requires API Level 5.
476
+ ```
477
+
478
+ ### <sub>bluetoothGetLocalAddress</sub> ###
479
+ ```
480
+ bluetoothGetLocalAddress()
481
+
482
+ Returns the hardware address of the local Bluetooth adapter.
483
+
484
+ Requires API Level 5.
485
+ ```
486
+
487
+ ### <sub>bluetoothGetLocalName</sub> ###
488
+ ```
489
+ bluetoothGetLocalName()
490
+
491
+ Gets the Bluetooth Visible device name
492
+
493
+ Requires API Level 5.
494
+ ```
495
+
496
+ ### <sub>bluetoothGetRemoteDeviceName</sub> ###
497
+ ```
498
+ bluetoothGetRemoteDeviceName(
499
+ String address: Bluetooth Address For Target Device)
500
+
501
+ Queries a remote device for it's name or null if it can't be resolved
502
+
503
+ Requires API Level 5.
504
+ ```
505
+
506
+ ### <sub>bluetoothGetScanMode</sub> ###
507
+ ```
508
+ bluetoothGetScanMode()
509
+
510
+ Gets the scan mode for the local dongle.
511
+ Return values:
512
+ -1 when Bluetooth is disabled.
513
+ 0 if non discoverable and non connectable.
514
+ 1 connectable non discoverable.
515
+ 3 connectable and discoverable.
516
+
517
+ Requires API Level 5.
518
+ ```
519
+
520
+ ### <sub>bluetoothIsDiscovering</sub> ###
521
+ ```
522
+ bluetoothIsDiscovering()
523
+
524
+ Return true if the local Bluetooth adapter is currently in the device discovery
525
+ process.
526
+
527
+ Requires API Level 5.
528
+ ```
529
+
530
+ ### <sub>bluetoothMakeDiscoverable</sub> ###
531
+ ```
532
+ bluetoothMakeDiscoverable(
533
+ Integer duration[optional, default 300]: period of time, in seconds, during
534
+ which the device should be discoverable)
535
+
536
+ Requests that the device be discoverable for Bluetooth connections.
537
+
538
+ Requires API Level 5.
539
+ ```
540
+
541
+ ### <sub>bluetoothRead</sub> ###
542
+ ```
543
+ bluetoothRead(
544
+ Integer bufferSize[optional, default 4096],
545
+ String connID[optional, default null]: Connection id)
546
+
547
+ Read up to bufferSize ASCII characters.
548
+
549
+ Requires API Level 5.
550
+ ```
551
+
552
+ ### <sub>bluetoothReadBinary</sub> ###
553
+ ```
554
+ bluetoothReadBinary(
555
+ Integer bufferSize[optional, default 4096],
556
+ String connID[optional, default ]: Connection id)
557
+
558
+ Read up to bufferSize bytes and return a chunked, base64 encoded string.
559
+
560
+ Requires API Level 5.
561
+ ```
562
+
563
+ ### <sub>bluetoothReadLine</sub> ###
564
+ ```
565
+ bluetoothReadLine(
566
+ String connID[optional, default null]: Connection id)
567
+
568
+ Read the next line.
569
+
570
+ Requires API Level 5.
571
+ ```
572
+
573
+ ### <sub>bluetoothReadReady</sub> ###
574
+ ```
575
+ bluetoothReadReady(
576
+ String connID[optional, default ]: Connection id)
577
+
578
+ Returns True if the next read is guaranteed not to block.
579
+
580
+ Requires API Level 5.
581
+ ```
582
+
583
+ ### <sub>bluetoothSetLocalName</sub> ###
584
+ ```
585
+ bluetoothSetLocalName(
586
+ String name: New local name)
587
+
588
+ Sets the Bluetooth Visible device name, returns True on success
589
+
590
+ Requires API Level 5.
591
+ ```
592
+
593
+ ### <sub>bluetoothStop</sub> ###
594
+ ```
595
+ bluetoothStop(
596
+ String connID[optional, default null]: Connection id)
597
+
598
+ Stops Bluetooth connection.
599
+
600
+ Requires API Level 5.
601
+ ```
602
+
603
+ ### <sub>bluetoothWrite</sub> ###
604
+ ```
605
+ bluetoothWrite(
606
+ String ascii,
607
+ String connID[optional, default ]: Connection id)
608
+
609
+ Sends ASCII characters over the currently open Bluetooth connection.
610
+
611
+ Requires API Level 5.
612
+ ```
613
+
614
+ ### <sub>bluetoothWriteBinary</sub> ###
615
+ ```
616
+ bluetoothWriteBinary(
617
+ String base64: A base64 encoded String of the bytes to be sent.,
618
+ String connID[optional, default ]: Connection id)
619
+
620
+ Send bytes over the currently open Bluetooth connection.
621
+
622
+ Requires API Level 5.
623
+ ```
624
+
625
+ ### <sub>cameraCapturePicture</sub> ###
626
+ ```
627
+ cameraCapturePicture(
628
+ String targetPath,
629
+ Boolean useAutoFocus[optional, default true])
630
+
631
+ Take a picture and save it to the specified path.
632
+
633
+ Returns:
634
+ A map of Booleans autoFocus and takePicture where True indicates success.
635
+ ```
636
+
637
+ ### <sub>cameraInteractiveCapturePicture</sub> ###
638
+ ```
639
+ cameraInteractiveCapturePicture(
640
+ String targetPath)
641
+
642
+ Starts the image capture application to take a picture and saves it to the
643
+ specified path.
644
+ ```
645
+
646
+ ### <sub>cameraStartPreview</sub> ###
647
+ ```
648
+ cameraStartPreview(
649
+ Integer resolutionLevel[optional, default 0]: increasing this number provides
650
+ higher resolution,
651
+ Integer jpegQuality[optional, default 20]: a number from 0-100,
652
+ String filepath[optional]: Path to store jpeg files.)
653
+
654
+ Start Preview Mode. Throws 'preview' events.
655
+
656
+ Returns:
657
+ True if successful
658
+
659
+ Requires API Level 8.
660
+ ```
661
+
662
+ ### <sub>cameraStopPreview</sub> ###
663
+ ```
664
+ cameraStopPreview()
665
+
666
+ Stop the preview mode.
667
+
668
+ Requires API Level 8.
669
+ ```
670
+
671
+ ### <sub>checkAirplaneMode</sub> ###
672
+ ```
673
+ checkAirplaneMode()
674
+
675
+ Checks the airplane mode setting.
676
+
677
+ Returns:
678
+ True if airplane mode is enabled.
679
+ ```
680
+
681
+ ### <sub>checkBluetoothState</sub> ###
682
+ ```
683
+ checkBluetoothState()
684
+
685
+ Checks Bluetooth state.
686
+
687
+ Returns:
688
+ True if Bluetooth is enabled.
689
+
690
+ Requires API Level 5.
691
+ ```
692
+
693
+ ### <sub>checkNetworkRoaming</sub> ###
694
+ ```
695
+ checkNetworkRoaming()
696
+
697
+ Returns true if the device is considered roaming on the current network, for
698
+ GSM purposes.
699
+ ```
700
+
701
+ ### <sub>checkRingerSilentMode</sub> ###
702
+ ```
703
+ checkRingerSilentMode()
704
+
705
+ Checks the ringer silent mode setting.
706
+
707
+ Returns:
708
+ True if ringer silent mode is enabled.
709
+ ```
710
+
711
+ ### <sub>checkScreenOn</sub> ###
712
+ ```
713
+ checkScreenOn()
714
+
715
+ Checks if the screen is on or off (requires API level 7).
716
+
717
+ Returns:
718
+ True if the screen is currently on.
719
+ ```
720
+
721
+ ### <sub>checkWifiState</sub> ###
722
+ ```
723
+ checkWifiState()
724
+
725
+ Checks Wifi state.
726
+
727
+ Returns:
728
+ True if Wifi is enabled.
729
+ ```
730
+
731
+ ### <sub>clearContextMenu</sub> ###
732
+ ```
733
+ clearContextMenu()
734
+
735
+ Removes all items previously added to context menu.
736
+ ```
737
+
738
+ ### <sub>clearOptionsMenu</sub> ###
739
+ ```
740
+ clearOptionsMenu()
741
+
742
+ Removes all items previously added to options menu.
743
+ ```
744
+
745
+ ### <sub>contactsGet</sub> ###
746
+ ```
747
+ contactsGet(
748
+ JSONArray attributes[optional])
749
+
750
+ Returns a List of all contacts.
751
+
752
+ Returns:
753
+ a List of contacts as Maps
754
+ ```
755
+
756
+ ### <sub>contactsGetAttributes</sub> ###
757
+ ```
758
+ contactsGetAttributes()
759
+
760
+ Returns a List of all possible attributes for contacts.
761
+ ```
762
+
763
+ ### <sub>contactsGetById</sub> ###
764
+ ```
765
+ contactsGetById(
766
+ Integer id,
767
+ JSONArray attributes[optional])
768
+
769
+ Returns contacts by ID.
770
+ ```
771
+
772
+ ### <sub>contactsGetCount</sub> ###
773
+ ```
774
+ contactsGetCount()
775
+
776
+ Returns the number of contacts.
777
+ ```
778
+
779
+ ### <sub>contactsGetIds</sub> ###
780
+ ```
781
+ contactsGetIds()
782
+
783
+ Returns a List of all contact IDs.
784
+ ```
785
+
786
+ ### <sub>dialogCreateAlert</sub> ###
787
+ ```
788
+ dialogCreateAlert(
789
+ String title[optional],
790
+ String message[optional])
791
+
792
+ Create alert dialog.
793
+ ```
794
+
795
+ ### <sub>dialogCreateDatePicker</sub> ###
796
+ ```
797
+ dialogCreateDatePicker(
798
+ Integer year[optional, default 1970],
799
+ Integer month[optional, default 1],
800
+ Integer day[optional, default 1])
801
+
802
+ Create date picker dialog.
803
+ ```
804
+
805
+ ### <sub>dialogCreateHorizontalProgress</sub> ###
806
+ ```
807
+ dialogCreateHorizontalProgress(
808
+ String title[optional],
809
+ String message[optional],
810
+ Integer maximum progress[optional, default 100])
811
+
812
+ Create a horizontal progress dialog.
813
+ ```
814
+
815
+ ### <sub>dialogCreateInput</sub> ###
816
+ ```
817
+ dialogCreateInput(
818
+ String title[optional, default Value]: title of the input box,
819
+ String message[optional, default Please enter value:]: message to display
820
+ above the input box,
821
+ String defaultText[optional]: text to insert into the input box,
822
+ String inputType[optional]: type of input data, ie number or text)
823
+
824
+ Create a text input dialog.
825
+ ```
826
+
827
+ ### <sub>dialogCreatePassword</sub> ###
828
+ ```
829
+ dialogCreatePassword(
830
+ String title[optional, default Password]: title of the input box,
831
+ String message[optional, default Please enter password:]: message to display
832
+ above the input box)
833
+
834
+ Create a password input dialog.
835
+ ```
836
+
837
+ ### <sub>dialogCreateSeekBar</sub> ###
838
+ ```
839
+ dialogCreateSeekBar(
840
+ Integer starting value[optional, default 50],
841
+ Integer maximum value[optional, default 100],
842
+ String title,
843
+ String message)
844
+
845
+ Create seek bar dialog.
846
+ ```
847
+
848
+ ### <sub>dialogCreateSpinnerProgress</sub> ###
849
+ ```
850
+ dialogCreateSpinnerProgress(
851
+ String title[optional],
852
+ String message[optional],
853
+ Integer maximum progress[optional, default 100])
854
+
855
+ Create a spinner progress dialog.
856
+ ```
857
+
858
+ ### <sub>dialogCreateTimePicker</sub> ###
859
+ ```
860
+ dialogCreateTimePicker(
861
+ Integer hour[optional, default 0],
862
+ Integer minute[optional, default 0],
863
+ Boolean is24hour[optional, default false]: Use 24 hour clock)
864
+
865
+ Create time picker dialog.
866
+ ```
867
+
868
+ ### <sub>dialogDismiss</sub> ###
869
+ ```
870
+ dialogDismiss()
871
+
872
+ Dismiss dialog.
873
+ ```
874
+
875
+ ### <sub>dialogGetInput</sub> ###
876
+ ```
877
+ dialogGetInput(
878
+ String title[optional, default Value]: title of the input box,
879
+ String message[optional, default Please enter value:]: message to display
880
+ above the input box,
881
+ String defaultText[optional]: text to insert into the input box)
882
+
883
+ Queries the user for a text input.
884
+ ```
885
+
886
+ ### <sub>dialogGetPassword</sub> ###
887
+ ```
888
+ dialogGetPassword(
889
+ String title[optional, default Password]: title of the password box,
890
+ String message[optional, default Please enter password:]: message to display
891
+ above the input box)
892
+
893
+ Queries the user for a password.
894
+ ```
895
+
896
+ ### <sub>dialogGetResponse</sub> ###
897
+ ```
898
+ dialogGetResponse()
899
+
900
+ Returns dialog response.
901
+ ```
902
+
903
+ ### <sub>dialogGetSelectedItems</sub> ###
904
+ ```
905
+ dialogGetSelectedItems()
906
+
907
+ This method provides list of items user selected.
908
+
909
+ Returns:
910
+ Selected items
911
+ ```
912
+
913
+ ### <sub>dialogSetCurrentProgress</sub> ###
914
+ ```
915
+ dialogSetCurrentProgress(
916
+ Integer current)
917
+
918
+ Set progress dialog current value.
919
+ ```
920
+
921
+ ### <sub>dialogSetItems</sub> ###
922
+ ```
923
+ dialogSetItems(
924
+ JSONArray items)
925
+
926
+ Set alert dialog list items.
927
+ ```
928
+
929
+ ### <sub>dialogSetMaxProgress</sub> ###
930
+ ```
931
+ dialogSetMaxProgress(
932
+ Integer max)
933
+
934
+ Set progress dialog maximum value.
935
+ ```
936
+
937
+ ### <sub>dialogSetMultiChoiceItems</sub> ###
938
+ ```
939
+ dialogSetMultiChoiceItems(
940
+ JSONArray items,
941
+ JSONArray selected[optional]: list of selected items)
942
+
943
+ Set dialog multiple choice items and selection.
944
+ ```
945
+
946
+ ### <sub>dialogSetNegativeButtonText</sub> ###
947
+ ```
948
+ dialogSetNegativeButtonText(
949
+ String text)
950
+
951
+ Set alert dialog button text.
952
+ ```
953
+
954
+ ### <sub>dialogSetNeutralButtonText</sub> ###
955
+ ```
956
+ dialogSetNeutralButtonText(
957
+ String text)
958
+
959
+ Set alert dialog button text.
960
+ ```
961
+
962
+ ### <sub>dialogSetPositiveButtonText</sub> ###
963
+ ```
964
+ dialogSetPositiveButtonText(
965
+ String text)
966
+
967
+ Set alert dialog positive button text.
968
+ ```
969
+
970
+ ### <sub>dialogSetSingleChoiceItems</sub> ###
971
+ ```
972
+ dialogSetSingleChoiceItems(
973
+ JSONArray items,
974
+ Integer selected[optional, default 0]: selected item index)
975
+
976
+ Set dialog single choice items and selected item.
977
+ ```
978
+
979
+ ### <sub>dialogShow</sub> ###
980
+ ```
981
+ dialogShow()
982
+
983
+ Show dialog.
984
+ ```
985
+
986
+ ### <sub>environment</sub> ###
987
+ ```
988
+ environment()
989
+
990
+ A map of various useful environment details
991
+ ```
992
+
993
+ ### <sub>eventClearBuffer</sub> ###
994
+ ```
995
+ eventClearBuffer()
996
+
997
+ Clears all events from the event buffer.
998
+ ```
999
+
1000
+ ### <sub>eventGetBrodcastCategories</sub> ###
1001
+ ```
1002
+ eventGetBrodcastCategories()
1003
+
1004
+ Lists all the broadcast signals we are listening for
1005
+ ```
1006
+
1007
+ ### <sub>eventPoll</sub> ###
1008
+ ```
1009
+ eventPoll(
1010
+ Integer number_of_events[optional, default 1])
1011
+
1012
+ Returns and removes the oldest n events (i.e. location or sensor update, etc.)
1013
+ from the event buffer.
1014
+
1015
+ Returns:
1016
+ A List of Maps of event properties.
1017
+ ```
1018
+
1019
+ ### <sub>eventPost</sub> ###
1020
+ ```
1021
+ eventPost(
1022
+ String name: Name of event,
1023
+ String data: Data contained in event.,
1024
+ Boolean enqueue[optional, default null]: Set to False if you don't want your
1025
+ events to be added to the event queue, just dispatched.)
1026
+
1027
+ Post an event to the event queue.
1028
+ ```
1029
+
1030
+ ### <sub>eventRegisterForBroadcast</sub> ###
1031
+ ```
1032
+ eventRegisterForBroadcast(
1033
+ String category,
1034
+ Boolean enqueue[optional, default true]: Should this events be added to the
1035
+ event queue or only dispatched)
1036
+
1037
+ Registers a listener for a new broadcast signal
1038
+ ```
1039
+
1040
+ ### <sub>eventUnregisterForBroadcast</sub> ###
1041
+ ```
1042
+ eventUnregisterForBroadcast(
1043
+ String category)
1044
+
1045
+ Stop listening for a broadcast signal
1046
+ ```
1047
+
1048
+ ### <sub>eventWait</sub> ###
1049
+ ```
1050
+ eventWait(
1051
+ Integer timeout[optional]: the maximum time to wait)
1052
+
1053
+ Blocks until an event occurs. The returned event is removed from the buffer.
1054
+
1055
+ Returns:
1056
+ Map of event properties.
1057
+ ```
1058
+
1059
+ ### <sub>eventWaitFor</sub> ###
1060
+ ```
1061
+ eventWaitFor(
1062
+ String eventName,
1063
+ Integer timeout[optional]: the maximum time to wait (in ms))
1064
+
1065
+ Blocks until an event with the supplied name occurs. The returned event is not
1066
+ removed from the buffer.
1067
+
1068
+ Returns:
1069
+ Map of event properties.
1070
+ ```
1071
+
1072
+ ### <sub>forceStopPackage</sub> ###
1073
+ ```
1074
+ forceStopPackage(
1075
+ String packageName: name of package)
1076
+
1077
+ Force stops a package.
1078
+ ```
1079
+
1080
+ ### <sub>fullDismiss</sub> ###
1081
+ ```
1082
+ fullDismiss()
1083
+
1084
+ Dismiss Full Screen.
1085
+ ```
1086
+
1087
+ ### <sub>fullKeyOverride</sub> ###
1088
+ ```
1089
+ fullKeyOverride(
1090
+ JSONArray keycodes: List of keycodes to override,
1091
+ Boolean enable[optional, default true]: Turn overriding or off)
1092
+
1093
+ Override default key actions
1094
+ ```
1095
+
1096
+ ### <sub>fullQuery</sub> ###
1097
+ ```
1098
+ fullQuery()
1099
+
1100
+ Get Fullscreen Properties
1101
+ ```
1102
+
1103
+ ### <sub>fullQueryDetail</sub> ###
1104
+ ```
1105
+ fullQueryDetail(
1106
+ String id: id of layout widget)
1107
+
1108
+ Get fullscreen properties for a specific widget
1109
+ ```
1110
+
1111
+ ### <sub>fullSetList</sub> ###
1112
+ ```
1113
+ fullSetList(
1114
+ String id: id of layout widget,
1115
+ JSONArray list: List to set)
1116
+
1117
+ Attach a list to a fullscreen widget
1118
+ ```
1119
+
1120
+ ### <sub>fullSetProperty</sub> ###
1121
+ ```
1122
+ fullSetProperty(
1123
+ String id: id of layout widget,
1124
+ String property: name of property to set,
1125
+ String value: value to set property to)
1126
+
1127
+ Set fullscreen widget property
1128
+ ```
1129
+
1130
+ ### <sub>fullSetTitle</sub> ###
1131
+ ```
1132
+ fullSetTitle(
1133
+ String title: Activity Title)
1134
+
1135
+ Set the Full Screen Activity Title
1136
+ ```
1137
+
1138
+ ### <sub>fullShow</sub> ###
1139
+ ```
1140
+ fullShow(
1141
+ String layout: String containing View layout,
1142
+ String title[optional]: Activity Title)
1143
+
1144
+ Show Full Screen.
1145
+ ```
1146
+
1147
+ ### <sub>generateDtmfTones</sub> ###
1148
+ ```
1149
+ generateDtmfTones(
1150
+ String phoneNumber,
1151
+ Integer toneDuration[optional, default 100]: duration of each tone in
1152
+ milliseconds)
1153
+
1154
+ Generate DTMF tones for the given phone number.
1155
+ ```
1156
+
1157
+ ### <sub>geocode</sub> ###
1158
+ ```
1159
+ geocode(
1160
+ Double latitude,
1161
+ Double longitude,
1162
+ Integer maxResults[optional, default 1]: maximum number of results)
1163
+
1164
+ Returns a list of addresses for the given latitude and longitude.
1165
+
1166
+ Returns:
1167
+ A list of addresses.
1168
+ ```
1169
+
1170
+ ### <sub>getCellLocation</sub> ###
1171
+ ```
1172
+ getCellLocation()
1173
+
1174
+ Returns the current cell location.
1175
+ ```
1176
+
1177
+ ### <sub>getClipboard</sub> ###
1178
+ ```
1179
+ getClipboard()
1180
+
1181
+ Read text from the clipboard.
1182
+
1183
+ Returns:
1184
+ The text in the clipboard.
1185
+ ```
1186
+
1187
+ ### <sub>getConstants</sub> ###
1188
+ ```
1189
+ getConstants(
1190
+ String classname: Class to get constants from)
1191
+
1192
+ Get list of constants (static final fields) for a class
1193
+ ```
1194
+
1195
+ ### <sub>getDeviceId</sub> ###
1196
+ ```
1197
+ getDeviceId()
1198
+
1199
+ Returns the unique device ID, for example, the IMEI for GSM and the MEID for
1200
+ CDMA phones. Return null if device ID is not available.
1201
+ ```
1202
+
1203
+ ### <sub>getDeviceSoftwareVersion</sub> ###
1204
+ ```
1205
+ getDeviceSoftwareVersion()
1206
+
1207
+ Returns the software version number for the device, for example, the IMEI/SV
1208
+ for GSM phones. Return null if the software version is not available.
1209
+ ```
1210
+
1211
+ ### <sub>getInput</sub> ###
1212
+ ```
1213
+ getInput(
1214
+ String title[optional, default SL4A Input]: title of the input box,
1215
+ String message[optional, default Please enter value:]: message to display
1216
+ above the input box)
1217
+
1218
+ Queries the user for a text input.
1219
+
1220
+ Deprecated in r3! Please use dialogGetInput instead.
1221
+ ```
1222
+
1223
+ ### <sub>getIntent</sub> ###
1224
+ ```
1225
+ getIntent()
1226
+
1227
+ Returns the intent that launched the script.
1228
+ ```
1229
+
1230
+ ### <sub>getLastKnownLocation</sub> ###
1231
+ ```
1232
+ getLastKnownLocation()
1233
+
1234
+ Returns the last known location of the device.
1235
+
1236
+ Returns:
1237
+ A map of location information by provider.
1238
+ ```
1239
+
1240
+ ### <sub>getLaunchableApplications</sub> ###
1241
+ ```
1242
+ getLaunchableApplications()
1243
+
1244
+ Returns a list of all launchable application class names.
1245
+ ```
1246
+
1247
+ ### <sub>getLine1Number</sub> ###
1248
+ ```
1249
+ getLine1Number()
1250
+
1251
+ Returns the phone number string for line 1, for example, the MSISDN for a GSM
1252
+ phone. Return null if it is unavailable.
1253
+ ```
1254
+
1255
+ ### <sub>getMaxMediaVolume</sub> ###
1256
+ ```
1257
+ getMaxMediaVolume()
1258
+
1259
+ Returns the maximum media volume.
1260
+ ```
1261
+
1262
+ ### <sub>getMaxRingerVolume</sub> ###
1263
+ ```
1264
+ getMaxRingerVolume()
1265
+
1266
+ Returns the maximum ringer volume.
1267
+ ```
1268
+
1269
+ ### <sub>getMediaVolume</sub> ###
1270
+ ```
1271
+ getMediaVolume()
1272
+
1273
+ Returns the current media volume.
1274
+ ```
1275
+
1276
+ ### <sub>getNeighboringCellInfo</sub> ###
1277
+ ```
1278
+ getNeighboringCellInfo()
1279
+
1280
+ Returns the neighboring cell information of the device.
1281
+ ```
1282
+
1283
+ ### <sub>getNetworkOperator</sub> ###
1284
+ ```
1285
+ getNetworkOperator()
1286
+
1287
+ Returns the numeric name (MCC+MNC) of current registered operator.
1288
+ ```
1289
+
1290
+ ### <sub>getNetworkOperatorName</sub> ###
1291
+ ```
1292
+ getNetworkOperatorName()
1293
+
1294
+ Returns the alphabetic name of current registered operator.
1295
+ ```
1296
+
1297
+ ### <sub>getNetworkType</sub> ###
1298
+ ```
1299
+ getNetworkType()
1300
+
1301
+ Returns a the radio technology (network type) currently in use on the device.
1302
+ ```
1303
+
1304
+ ### <sub>getPackageVersion</sub> ###
1305
+ ```
1306
+ getPackageVersion(
1307
+ String packageName)
1308
+
1309
+ Returns package version name.
1310
+ ```
1311
+
1312
+ ### <sub>getPackageVersionCode</sub> ###
1313
+ ```
1314
+ getPackageVersionCode(
1315
+ String packageName)
1316
+
1317
+ Returns package version code.
1318
+ ```
1319
+
1320
+ ### <sub>getPassword</sub> ###
1321
+ ```
1322
+ getPassword(
1323
+ String title[optional, default SL4A Password Input]: title of the input box,
1324
+ String message[optional, default Please enter password:]: message to display
1325
+ above the input box)
1326
+
1327
+ Queries the user for a password.
1328
+
1329
+ Deprecated in r3! Please use dialogGetPassword instead.
1330
+ ```
1331
+
1332
+ ### <sub>getPhoneType</sub> ###
1333
+ ```
1334
+ getPhoneType()
1335
+
1336
+ Returns the device phone type.
1337
+ ```
1338
+
1339
+ ### <sub>getRingerVolume</sub> ###
1340
+ ```
1341
+ getRingerVolume()
1342
+
1343
+ Returns the current ringer volume.
1344
+ ```
1345
+
1346
+ ### <sub>getRunningPackages</sub> ###
1347
+ ```
1348
+ getRunningPackages()
1349
+
1350
+ Returns a list of packages running activities or services.
1351
+
1352
+ Returns:
1353
+ List of packages running activities.
1354
+ ```
1355
+
1356
+ ### <sub>getScreenBrightness</sub> ###
1357
+ ```
1358
+ getScreenBrightness()
1359
+
1360
+ Returns the screen backlight brightness.
1361
+
1362
+ Returns:
1363
+ the current screen brightness between 0 and 255
1364
+ ```
1365
+
1366
+ ### <sub>getScreenTimeout</sub> ###
1367
+ ```
1368
+ getScreenTimeout()
1369
+
1370
+ Returns the current screen timeout in seconds.
1371
+
1372
+ Returns:
1373
+ the current screen timeout in seconds.
1374
+ ```
1375
+
1376
+ ### <sub>getSimCountryIso</sub> ###
1377
+ ```
1378
+ getSimCountryIso()
1379
+
1380
+ Returns the ISO country code equivalent for the SIM provider's country code.
1381
+ ```
1382
+
1383
+ ### <sub>getSimOperator</sub> ###
1384
+ ```
1385
+ getSimOperator()
1386
+
1387
+ Returns the MCC+MNC (mobile country code + mobile network code) of the provider
1388
+ of the SIM. 5 or 6 decimal digits.
1389
+ ```
1390
+
1391
+ ### <sub>getSimOperatorName</sub> ###
1392
+ ```
1393
+ getSimOperatorName()
1394
+
1395
+ Returns the Service Provider Name (SPN).
1396
+ ```
1397
+
1398
+ ### <sub>getSimSerialNumber</sub> ###
1399
+ ```
1400
+ getSimSerialNumber()
1401
+
1402
+ Returns the serial number of the SIM, if applicable. Return null if it is
1403
+ unavailable.
1404
+ ```
1405
+
1406
+ ### <sub>getSimState</sub> ###
1407
+ ```
1408
+ getSimState()
1409
+
1410
+ Returns the state of the device SIM card.
1411
+ ```
1412
+
1413
+ ### <sub>getSubscriberId</sub> ###
1414
+ ```
1415
+ getSubscriberId()
1416
+
1417
+ Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return
1418
+ null if it is unavailable.
1419
+ ```
1420
+
1421
+ ### <sub>getVibrateMode</sub> ###
1422
+ ```
1423
+ getVibrateMode(
1424
+ Boolean ringer[optional])
1425
+
1426
+ Checks Vibration setting. If ringer=true then query Ringer setting, else query
1427
+ Notification setting
1428
+
1429
+ Returns:
1430
+ True if vibrate mode is enabled.
1431
+ ```
1432
+
1433
+ ### <sub>getVoiceMailAlphaTag</sub> ###
1434
+ ```
1435
+ getVoiceMailAlphaTag()
1436
+
1437
+ Retrieves the alphabetic identifier associated with the voice mail number.
1438
+ ```
1439
+
1440
+ ### <sub>getVoiceMailNumber</sub> ###
1441
+ ```
1442
+ getVoiceMailNumber()
1443
+
1444
+ Returns the voice mail number. Return null if it is unavailable.
1445
+ ```
1446
+
1447
+ ### <sub>launch</sub> ###
1448
+ ```
1449
+ launch(
1450
+ String className)
1451
+
1452
+ Start activity with the given class name.
1453
+ ```
1454
+
1455
+ ### <sub>locationProviderEnabled</sub> ###
1456
+ ```
1457
+ locationProviderEnabled(
1458
+ String provider: Name of location provider)
1459
+
1460
+ Ask if provider is enabled
1461
+ ```
1462
+
1463
+ ### <sub>locationProviders</sub> ###
1464
+ ```
1465
+ locationProviders()
1466
+
1467
+ Returns availables providers on the phone
1468
+ ```
1469
+
1470
+ ### <sub>log</sub> ###
1471
+ ```
1472
+ log(
1473
+ String message)
1474
+
1475
+ Writes message to logcat.
1476
+ ```
1477
+
1478
+ ### <sub>makeIntent</sub> ###
1479
+ ```
1480
+ makeIntent(
1481
+ String action,
1482
+ String uri[optional],
1483
+ String type[optional]: MIME type/subtype of the URI,
1484
+ JSONObject extras[optional]: a Map of extras to add to the Intent,
1485
+ JSONArray categories[optional]: a List of categories to add to the Intent,
1486
+ String packagename[optional]: name of package. If used, requires classname to
1487
+ be useful,
1488
+ String classname[optional]: name of class. If used, requires packagename to be
1489
+ useful,
1490
+ Integer flags[optional]: Intent flags)
1491
+
1492
+ Create an Intent.
1493
+
1494
+ Returns:
1495
+ An object representing an Intent
1496
+ ```
1497
+
1498
+ ### <sub>makeToast</sub> ###
1499
+ ```
1500
+ makeToast(
1501
+ String message)
1502
+
1503
+ Displays a short-duration Toast notification.
1504
+ ```
1505
+
1506
+ ### <sub>mediaIsPlaying</sub> ###
1507
+ ```
1508
+ mediaIsPlaying(
1509
+ String tag[optional, default default]: string identifying resource)
1510
+
1511
+ Checks if media file is playing.
1512
+
1513
+ Returns:
1514
+ true if playing
1515
+ ```
1516
+
1517
+ ### <sub>mediaPlay</sub> ###
1518
+ ```
1519
+ mediaPlay(
1520
+ String url: url of media resource,
1521
+ String tag[optional, default default]: string identifying resource,
1522
+ Boolean play[optional, default true]: start playing immediately)
1523
+
1524
+ Open a media file
1525
+
1526
+ Returns:
1527
+ true if play successful
1528
+ ```
1529
+
1530
+ ### <sub>mediaPlayClose</sub> ###
1531
+ ```
1532
+ mediaPlayClose(
1533
+ String tag[optional, default default]: string identifying resource)
1534
+
1535
+ Close media file
1536
+
1537
+ Returns:
1538
+ true if successful
1539
+ ```
1540
+
1541
+ ### <sub>mediaPlayInfo</sub> ###
1542
+ ```
1543
+ mediaPlayInfo(
1544
+ String tag[optional, default default]: string identifying resource)
1545
+
1546
+ Information on current media
1547
+
1548
+ Returns:
1549
+ Media Information
1550
+ ```
1551
+
1552
+ ### <sub>mediaPlayList</sub> ###
1553
+ ```
1554
+ mediaPlayList()
1555
+
1556
+ Lists currently loaded media
1557
+
1558
+ Returns:
1559
+ List of Media Tags
1560
+ ```
1561
+
1562
+ ### <sub>mediaPlayPause</sub> ###
1563
+ ```
1564
+ mediaPlayPause(
1565
+ String tag[optional, default default]: string identifying resource)
1566
+
1567
+ pause playing media file
1568
+
1569
+ Returns:
1570
+ true if successful
1571
+ ```
1572
+
1573
+ ### <sub>mediaPlaySeek</sub> ###
1574
+ ```
1575
+ mediaPlaySeek(
1576
+ Integer msec: Position in millseconds,
1577
+ String tag[optional, default default]: string identifying resource)
1578
+
1579
+ Seek To Position
1580
+
1581
+ Returns:
1582
+ New Position (in ms)
1583
+ ```
1584
+
1585
+ ### <sub>mediaPlaySetLooping</sub> ###
1586
+ ```
1587
+ mediaPlaySetLooping(
1588
+ Boolean enabled[optional, default true],
1589
+ String tag[optional, default default]: string identifying resource)
1590
+
1591
+ Set Looping
1592
+
1593
+ Returns:
1594
+ True if successful
1595
+ ```
1596
+
1597
+ ### <sub>mediaPlayStart</sub> ###
1598
+ ```
1599
+ mediaPlayStart(
1600
+ String tag[optional, default default]: string identifying resource)
1601
+
1602
+ start playing media file
1603
+
1604
+ Returns:
1605
+ true if successful
1606
+ ```
1607
+
1608
+ ### <sub>notify</sub> ###
1609
+ ```
1610
+ notify(
1611
+ String title: title,
1612
+ String message)
1613
+
1614
+ Displays a notification that will be canceled when the user clicks on it.
1615
+ ```
1616
+
1617
+ ### <sub>phoneCall</sub> ###
1618
+ ```
1619
+ phoneCall(
1620
+ String uri)
1621
+
1622
+ Calls a contact/phone number by URI.
1623
+ ```
1624
+
1625
+ ### <sub>phoneCallNumber</sub> ###
1626
+ ```
1627
+ phoneCallNumber(
1628
+ String phone number)
1629
+
1630
+ Calls a phone number.
1631
+ ```
1632
+
1633
+ ### <sub>phoneDial</sub> ###
1634
+ ```
1635
+ phoneDial(
1636
+ String uri)
1637
+
1638
+ Dials a contact/phone number by URI.
1639
+ ```
1640
+
1641
+ ### <sub>phoneDialNumber</sub> ###
1642
+ ```
1643
+ phoneDialNumber(
1644
+ String phone number)
1645
+
1646
+ Dials a phone number.
1647
+ ```
1648
+
1649
+ ### <sub>pick</sub> ###
1650
+ ```
1651
+ pick(
1652
+ String uri)
1653
+
1654
+ Display content to be picked by URI (e.g. contacts)
1655
+
1656
+ Returns:
1657
+ A map of result values.
1658
+ ```
1659
+
1660
+ ### <sub>pickContact</sub> ###
1661
+ ```
1662
+ pickContact()
1663
+
1664
+ Displays a list of contacts to pick from.
1665
+
1666
+ Returns:
1667
+ A map of result values.
1668
+ ```
1669
+
1670
+ ### <sub>pickPhone</sub> ###
1671
+ ```
1672
+ pickPhone()
1673
+
1674
+ Displays a list of phone numbers to pick from.
1675
+
1676
+ Returns:
1677
+ The selected phone number.
1678
+ ```
1679
+
1680
+ ### <sub>postEvent</sub> ###
1681
+ ```
1682
+ rpcPostEvent(
1683
+ String name,
1684
+ String data)
1685
+
1686
+ Post an event to the event queue.
1687
+
1688
+ Deprecated in r4! Please use eventPost instead.
1689
+ ```
1690
+
1691
+ ### <sub>prefGetAll</sub> ###
1692
+ ```
1693
+ prefGetAll(
1694
+ String filename[optional]: Desired preferences file. If not defined, uses the
1695
+ default Shared Preferences.)
1696
+
1697
+ Get list of Shared Preference Values
1698
+
1699
+ Returns:
1700
+ Map of key,value
1701
+ ```
1702
+
1703
+ ### <sub>prefGetValue</sub> ###
1704
+ ```
1705
+ prefGetValue(
1706
+ String key,
1707
+ String filename[optional]: Desired preferences file. If not defined, uses the
1708
+ default Shared Preferences.)
1709
+
1710
+ Read a value from shared preferences
1711
+ ```
1712
+
1713
+ ### <sub>prefPutValue</sub> ###
1714
+ ```
1715
+ prefPutValue(
1716
+ String key,
1717
+ Object value,
1718
+ String filename[optional]: Desired preferences file. If not defined, uses the
1719
+ default Shared Preferences.)
1720
+
1721
+ Write a value to shared preferences
1722
+ ```
1723
+
1724
+ ### <sub>queryAttributes</sub> ###
1725
+ ```
1726
+ queryAttributes(
1727
+ String uri: The URI, using the content:// scheme, for the content to
1728
+ retrieve.)
1729
+
1730
+ Content Resolver Query Attributes
1731
+
1732
+ Returns:
1733
+ a list of available columns for a given content uri
1734
+ ```
1735
+
1736
+ ### <sub>queryContent</sub> ###
1737
+ ```
1738
+ queryContent(
1739
+ String uri: The URI, using the content:// scheme, for the content to
1740
+ retrieve.,
1741
+ JSONArray attributes[optional]: A list of which columns to return. Passing
1742
+ null will return all columns,
1743
+ String selection[optional]: A filter declaring which rows to return,
1744
+ JSONArray selectionArgs[optional]: You may include ?s in selection, which will
1745
+ be replaced by the values from selectionArgs,
1746
+ String order[optional]: How to order the rows)
1747
+
1748
+ Content Resolver Query
1749
+
1750
+ Returns:
1751
+ result of query as Maps
1752
+ ```
1753
+
1754
+ ### <sub>readBatteryData</sub> ###
1755
+ ```
1756
+ readBatteryData()
1757
+
1758
+ Returns the most recently recorded battery data.
1759
+ ```
1760
+
1761
+ ### <sub>readLocation</sub> ###
1762
+ ```
1763
+ readLocation()
1764
+
1765
+ Returns the current location as indicated by all available providers.
1766
+
1767
+ Returns:
1768
+ A map of location information by provider.
1769
+ ```
1770
+
1771
+ ### <sub>readPhoneState</sub> ###
1772
+ ```
1773
+ readPhoneState()
1774
+
1775
+ Returns the current phone state and incoming number.
1776
+
1777
+ Returns:
1778
+ A Map of "state" and "incomingNumber"
1779
+ ```
1780
+
1781
+ ### <sub>readSensors</sub> ###
1782
+ ```
1783
+ readSensors()
1784
+
1785
+ Returns the most recently recorded sensor data.
1786
+ ```
1787
+
1788
+ ### <sub>readSignalStrengths</sub> ###
1789
+ ```
1790
+ readSignalStrengths()
1791
+
1792
+ Returns the current signal strengths.
1793
+
1794
+ Returns:
1795
+ A map of "gsm_signal_strength"
1796
+
1797
+ Requires API Level 7.
1798
+ ```
1799
+
1800
+ ### <sub>receiveEvent</sub> ###
1801
+ ```
1802
+ receiveEvent()
1803
+
1804
+ Returns and removes the oldest event (i.e. location or sensor update, etc.)
1805
+ from the event buffer.
1806
+
1807
+ Returns:
1808
+ Map of event properties.
1809
+
1810
+ Deprecated in r4! Please use eventPoll instead.
1811
+ ```
1812
+
1813
+ ### <sub>recognizeSpeech</sub> ###
1814
+ ```
1815
+ recognizeSpeech(
1816
+ String prompt[optional]: text prompt to show to the user when asking them to
1817
+ speak,
1818
+ String language[optional]: language override to inform the recognizer that it
1819
+ should expect speech in a language different than the one set in the
1820
+ java.util.Locale.getDefault(),
1821
+ String languageModel[optional]: informs the recognizer which speech model to
1822
+ prefer (see android.speech.RecognizeIntent))
1823
+
1824
+ Recognizes user's speech and returns the most likely result.
1825
+
1826
+ Returns:
1827
+ An empty string in case the speech cannot be recongnized.
1828
+ ```
1829
+
1830
+ ### <sub>recorderCaptureVideo</sub> ###
1831
+ ```
1832
+ recorderCaptureVideo(
1833
+ String targetPath,
1834
+ Integer duration[optional],
1835
+ Boolean recordAudio[optional, default true])
1836
+
1837
+ Records video (and optionally audio) from the camera and saves it to the given
1838
+ location.
1839
+ Duration specifies the maximum duration of the recording session.
1840
+ If duration is not provided this method will return immediately and the
1841
+ recording will only be stopped
1842
+ when recorderStop is called or when a scripts exits.
1843
+ Otherwise it will block for the time period equal to the duration argument.
1844
+ ```
1845
+
1846
+ ### <sub>recorderStartMicrophone</sub> ###
1847
+ ```
1848
+ recorderStartMicrophone(
1849
+ String targetPath)
1850
+
1851
+ Records audio from the microphone and saves it to the given location.
1852
+ ```
1853
+
1854
+ ### <sub>recorderStartVideo</sub> ###
1855
+ ```
1856
+ recorderStartVideo(
1857
+ String targetPath,
1858
+ Integer duration[optional, default 0],
1859
+ Integer videoSize[optional, default 1])
1860
+
1861
+ Records video from the camera and saves it to the given location.
1862
+ Duration specifies the maximum duration of the recording session.
1863
+ If duration is 0 this method will return and the recording will only be stopped
1864
+
1865
+ when recorderStop is called or when a scripts exits.
1866
+ Otherwise it will block for the time period equal to the duration argument.
1867
+ videoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.
1868
+ ```
1869
+
1870
+ ### <sub>recorderStop</sub> ###
1871
+ ```
1872
+ recorderStop()
1873
+
1874
+ Stops a previously started recording.
1875
+ ```
1876
+
1877
+ ### <sub>requiredVersion</sub> ###
1878
+ ```
1879
+ requiredVersion(
1880
+ Integer requiredVersion)
1881
+
1882
+ Checks if version of SL4A is greater than or equal to the specified version.
1883
+ ```
1884
+
1885
+ ### <sub>scanBarcode</sub> ###
1886
+ ```
1887
+ scanBarcode()
1888
+
1889
+ Starts the barcode scanner.
1890
+
1891
+ Returns:
1892
+ A Map representation of the result Intent.
1893
+ ```
1894
+
1895
+ ### <sub>search</sub> ###
1896
+ ```
1897
+ search(
1898
+ String query)
1899
+
1900
+ Starts a search for the given query.
1901
+ ```
1902
+
1903
+ ### <sub>sendBroadcast</sub> ###
1904
+ ```
1905
+ sendBroadcast(
1906
+ String action,
1907
+ String uri[optional],
1908
+ String type[optional]: MIME type/subtype of the URI,
1909
+ JSONObject extras[optional]: a Map of extras to add to the Intent,
1910
+ String packagename[optional]: name of package. If used, requires classname to
1911
+ be useful,
1912
+ String classname[optional]: name of class. If used, requires packagename to be
1913
+ useful)
1914
+
1915
+ Send a broadcast.
1916
+ ```
1917
+
1918
+ ### <sub>sendBroadcastIntent</sub> ###
1919
+ ```
1920
+ sendBroadcastIntent(
1921
+ Intent intent: Intent in the format as returned from makeIntent)
1922
+
1923
+ Send Broadcast Intent
1924
+ ```
1925
+
1926
+ ### <sub>sendEmail</sub> ###
1927
+ ```
1928
+ sendEmail(
1929
+ String to: A comma separated list of recipients.,
1930
+ String subject,
1931
+ String body,
1932
+ String attachmentUri[optional])
1933
+
1934
+ Launches an activity that sends an e-mail message to a given recipient.
1935
+ ```
1936
+
1937
+ ### <sub>sensorsGetAccuracy</sub> ###
1938
+ ```
1939
+ sensorsGetAccuracy()
1940
+
1941
+ Returns the most recently received accuracy value.
1942
+ ```
1943
+
1944
+ ### <sub>sensorsGetLight</sub> ###
1945
+ ```
1946
+ sensorsGetLight()
1947
+
1948
+ Returns the most recently received light value.
1949
+ ```
1950
+
1951
+ ### <sub>sensorsReadAccelerometer</sub> ###
1952
+ ```
1953
+ sensorsReadAccelerometer()
1954
+
1955
+ Returns the most recently received accelerometer values.
1956
+
1957
+ Returns:
1958
+ a List of Floats [(acceleration on the) X axis, Y axis, Z axis].
1959
+ ```
1960
+
1961
+ ### <sub>sensorsReadMagnetometer</sub> ###
1962
+ ```
1963
+ sensorsReadMagnetometer()
1964
+
1965
+ Returns the most recently received magnetic field values.
1966
+
1967
+ Returns:
1968
+ a List of Floats [(magnetic field value for) X axis, Y axis, Z axis].
1969
+ ```
1970
+
1971
+ ### <sub>sensorsReadOrientation</sub> ###
1972
+ ```
1973
+ sensorsReadOrientation()
1974
+
1975
+ Returns the most recently received orientation values.
1976
+
1977
+ Returns:
1978
+ a List of Doubles [azimuth, pitch, roll].
1979
+ ```
1980
+
1981
+ ### <sub>setClipboard</sub> ###
1982
+ ```
1983
+ setClipboard(
1984
+ String text)
1985
+
1986
+ Put text in the clipboard.
1987
+ ```
1988
+
1989
+ ### <sub>setMediaVolume</sub> ###
1990
+ ```
1991
+ setMediaVolume(
1992
+ Integer volume)
1993
+
1994
+ Sets the media volume.
1995
+ ```
1996
+
1997
+ ### <sub>setResultBoolean</sub> ###
1998
+ ```
1999
+ setResultBoolean(
2000
+ Integer resultCode: The result code to propagate back to the originating
2001
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2002
+ Boolean resultValue)
2003
+
2004
+ Sets the result of a script execution. Whenever the script APK is called via
2005
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2006
+ with the given value.
2007
+ ```
2008
+
2009
+ ### <sub>setResultBooleanArray</sub> ###
2010
+ ```
2011
+ setResultBooleanArray(
2012
+ Integer resultCode: The result code to propagate back to the originating
2013
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2014
+ Boolean[] resultValue)
2015
+
2016
+ Sets the result of a script execution. Whenever the script APK is called via
2017
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2018
+ with the given value.
2019
+ ```
2020
+
2021
+ ### <sub>setResultByte</sub> ###
2022
+ ```
2023
+ setResultByte(
2024
+ Integer resultCode: The result code to propagate back to the originating
2025
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2026
+ Byte resultValue)
2027
+
2028
+ Sets the result of a script execution. Whenever the script APK is called via
2029
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2030
+ with the given value.
2031
+ ```
2032
+
2033
+ ### <sub>setResultByteArray</sub> ###
2034
+ ```
2035
+ setResultByteArray(
2036
+ Integer resultCode: The result code to propagate back to the originating
2037
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2038
+ Byte[] resultValue)
2039
+
2040
+ Sets the result of a script execution. Whenever the script APK is called via
2041
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2042
+ with the given value.
2043
+ ```
2044
+
2045
+ ### <sub>setResultChar</sub> ###
2046
+ ```
2047
+ setResultChar(
2048
+ Integer resultCode: The result code to propagate back to the originating
2049
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2050
+ Character resultValue)
2051
+
2052
+ Sets the result of a script execution. Whenever the script APK is called via
2053
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2054
+ with the given value.
2055
+ ```
2056
+
2057
+ ### <sub>setResultCharArray</sub> ###
2058
+ ```
2059
+ setResultCharArray(
2060
+ Integer resultCode: The result code to propagate back to the originating
2061
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2062
+ Character[] resultValue)
2063
+
2064
+ Sets the result of a script execution. Whenever the script APK is called via
2065
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2066
+ with the given value.
2067
+ ```
2068
+
2069
+ ### <sub>setResultDouble</sub> ###
2070
+ ```
2071
+ setResultDouble(
2072
+ Integer resultCode: The result code to propagate back to the originating
2073
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2074
+ Double resultValue)
2075
+
2076
+ Sets the result of a script execution. Whenever the script APK is called via
2077
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2078
+ with the given value.
2079
+ ```
2080
+
2081
+ ### <sub>setResultDoubleArray</sub> ###
2082
+ ```
2083
+ setResultDoubleArray(
2084
+ Integer resultCode: The result code to propagate back to the originating
2085
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2086
+ Double[] resultValue)
2087
+
2088
+ Sets the result of a script execution. Whenever the script APK is called via
2089
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2090
+ with the given value.
2091
+ ```
2092
+
2093
+ ### <sub>setResultFloat</sub> ###
2094
+ ```
2095
+ setResultFloat(
2096
+ Integer resultCode: The result code to propagate back to the originating
2097
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2098
+ Float resultValue)
2099
+
2100
+ Sets the result of a script execution. Whenever the script APK is called via
2101
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2102
+ with the given value.
2103
+ ```
2104
+
2105
+ ### <sub>setResultFloatArray</sub> ###
2106
+ ```
2107
+ setResultFloatArray(
2108
+ Integer resultCode: The result code to propagate back to the originating
2109
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2110
+ Float[] resultValue)
2111
+
2112
+ Sets the result of a script execution. Whenever the script APK is called via
2113
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2114
+ with the given value.
2115
+ ```
2116
+
2117
+ ### <sub>setResultInteger</sub> ###
2118
+ ```
2119
+ setResultInteger(
2120
+ Integer resultCode: The result code to propagate back to the originating
2121
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2122
+ Integer resultValue)
2123
+
2124
+ Sets the result of a script execution. Whenever the script APK is called via
2125
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2126
+ with the given value.
2127
+ ```
2128
+
2129
+ ### <sub>setResultIntegerArray</sub> ###
2130
+ ```
2131
+ setResultIntegerArray(
2132
+ Integer resultCode: The result code to propagate back to the originating
2133
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2134
+ Integer[] resultValue)
2135
+
2136
+ Sets the result of a script execution. Whenever the script APK is called via
2137
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2138
+ with the given value.
2139
+ ```
2140
+
2141
+ ### <sub>setResultLong</sub> ###
2142
+ ```
2143
+ setResultLong(
2144
+ Integer resultCode: The result code to propagate back to the originating
2145
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2146
+ Long resultValue)
2147
+
2148
+ Sets the result of a script execution. Whenever the script APK is called via
2149
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2150
+ with the given value.
2151
+ ```
2152
+
2153
+ ### <sub>setResultLongArray</sub> ###
2154
+ ```
2155
+ setResultLongArray(
2156
+ Integer resultCode: The result code to propagate back to the originating
2157
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2158
+ Long[] resultValue)
2159
+
2160
+ Sets the result of a script execution. Whenever the script APK is called via
2161
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2162
+ with the given value.
2163
+ ```
2164
+
2165
+ ### <sub>setResultSerializable</sub> ###
2166
+ ```
2167
+ setResultSerializable(
2168
+ Integer resultCode: The result code to propagate back to the originating
2169
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2170
+ Serializable resultValue)
2171
+
2172
+ Sets the result of a script execution. Whenever the script APK is called via
2173
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2174
+ with the given value.
2175
+ ```
2176
+
2177
+ ### <sub>setResultShort</sub> ###
2178
+ ```
2179
+ setResultShort(
2180
+ Integer resultCode: The result code to propagate back to the originating
2181
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2182
+ Short resultValue)
2183
+
2184
+ Sets the result of a script execution. Whenever the script APK is called via
2185
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2186
+ with the given value.
2187
+ ```
2188
+
2189
+ ### <sub>setResultShortArray</sub> ###
2190
+ ```
2191
+ setResultShortArray(
2192
+ Integer resultCode: The result code to propagate back to the originating
2193
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2194
+ Short[] resultValue)
2195
+
2196
+ Sets the result of a script execution. Whenever the script APK is called via
2197
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2198
+ with the given value.
2199
+ ```
2200
+
2201
+ ### <sub>setResultString</sub> ###
2202
+ ```
2203
+ setResultString(
2204
+ Integer resultCode: The result code to propagate back to the originating
2205
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2206
+ String resultValue)
2207
+
2208
+ Sets the result of a script execution. Whenever the script APK is called via
2209
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2210
+ with the given value.
2211
+ ```
2212
+
2213
+ ### <sub>setResultStringArray</sub> ###
2214
+ ```
2215
+ setResultStringArray(
2216
+ Integer resultCode: The result code to propagate back to the originating
2217
+ activity, often RESULT_CANCELED (0) or RESULT_OK (-1),
2218
+ String[] resultValue)
2219
+
2220
+ Sets the result of a script execution. Whenever the script APK is called via
2221
+ startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra
2222
+ with the given value.
2223
+ ```
2224
+
2225
+ ### <sub>setRingerVolume</sub> ###
2226
+ ```
2227
+ setRingerVolume(
2228
+ Integer volume)
2229
+
2230
+ Sets the ringer volume.
2231
+ ```
2232
+
2233
+ ### <sub>setScreenBrightness</sub> ###
2234
+ ```
2235
+ setScreenBrightness(
2236
+ Integer value: brightness value between 0 and 255)
2237
+
2238
+ Sets the the screen backlight brightness.
2239
+
2240
+ Returns:
2241
+ the original screen brightness.
2242
+ ```
2243
+
2244
+ ### <sub>setScreenTimeout</sub> ###
2245
+ ```
2246
+ setScreenTimeout(
2247
+ Integer value)
2248
+
2249
+ Sets the screen timeout to this number of seconds.
2250
+
2251
+ Returns:
2252
+ The original screen timeout.
2253
+ ```
2254
+
2255
+ ### <sub>smsDeleteMessage</sub> ###
2256
+ ```
2257
+ smsDeleteMessage(
2258
+ Integer id)
2259
+
2260
+ Deletes a message.
2261
+
2262
+ Returns:
2263
+ True if the message was deleted
2264
+ ```
2265
+
2266
+ ### <sub>smsGetAttributes</sub> ###
2267
+ ```
2268
+ smsGetAttributes()
2269
+
2270
+ Returns a List of all possible message attributes.
2271
+ ```
2272
+
2273
+ ### <sub>smsGetMessageById</sub> ###
2274
+ ```
2275
+ smsGetMessageById(
2276
+ Integer id: message ID,
2277
+ JSONArray attributes[optional])
2278
+
2279
+ Returns message attributes.
2280
+ ```
2281
+
2282
+ ### <sub>smsGetMessageCount</sub> ###
2283
+ ```
2284
+ smsGetMessageCount(
2285
+ Boolean unreadOnly,
2286
+ String folder[optional, default inbox])
2287
+
2288
+ Returns the number of messages.
2289
+ ```
2290
+
2291
+ ### <sub>smsGetMessageIds</sub> ###
2292
+ ```
2293
+ smsGetMessageIds(
2294
+ Boolean unreadOnly,
2295
+ String folder[optional, default inbox])
2296
+
2297
+ Returns a List of all message IDs.
2298
+ ```
2299
+
2300
+ ### <sub>smsGetMessages</sub> ###
2301
+ ```
2302
+ smsGetMessages(
2303
+ Boolean unreadOnly,
2304
+ String folder[optional, default inbox],
2305
+ JSONArray attributes[optional])
2306
+
2307
+ Returns a List of all messages.
2308
+
2309
+ Returns:
2310
+ a List of messages as Maps
2311
+ ```
2312
+
2313
+ ### <sub>smsMarkMessageRead</sub> ###
2314
+ ```
2315
+ smsMarkMessageRead(
2316
+ JSONArray ids: List of message IDs to mark as read.,
2317
+ Boolean read)
2318
+
2319
+ Marks messages as read.
2320
+
2321
+ Returns:
2322
+ number of messages marked read
2323
+ ```
2324
+
2325
+ ### <sub>smsSend</sub> ###
2326
+ ```
2327
+ smsSend(
2328
+ String destinationAddress: typically a phone number,
2329
+ String text)
2330
+
2331
+ Sends an SMS.
2332
+ ```
2333
+
2334
+ ### <sub>startActivity</sub> ###
2335
+ ```
2336
+ startActivity(
2337
+ String action,
2338
+ String uri[optional],
2339
+ String type[optional]: MIME type/subtype of the URI,
2340
+ JSONObject extras[optional]: a Map of extras to add to the Intent,
2341
+ Boolean wait[optional]: block until the user exits the started activity,
2342
+ String packagename[optional]: name of package. If used, requires classname to
2343
+ be useful,
2344
+ String classname[optional]: name of class. If used, requires packagename to be
2345
+ useful)
2346
+
2347
+ Starts an activity.
2348
+ ```
2349
+
2350
+ ### <sub>startActivityForResult</sub> ###
2351
+ ```
2352
+ startActivityForResult(
2353
+ String action,
2354
+ String uri[optional],
2355
+ String type[optional]: MIME type/subtype of the URI,
2356
+ JSONObject extras[optional]: a Map of extras to add to the Intent,
2357
+ String packagename[optional]: name of package. If used, requires classname to
2358
+ be useful,
2359
+ String classname[optional]: name of class. If used, requires packagename to be
2360
+ useful)
2361
+
2362
+ Starts an activity and returns the result.
2363
+
2364
+ Returns:
2365
+ A Map representation of the result Intent.
2366
+ ```
2367
+
2368
+ ### <sub>startActivityForResultIntent</sub> ###
2369
+ ```
2370
+ startActivityForResultIntent(
2371
+ Intent intent: Intent in the format as returned from makeIntent)
2372
+
2373
+ Starts an activity and returns the result.
2374
+
2375
+ Returns:
2376
+ A Map representation of the result Intent.
2377
+ ```
2378
+
2379
+ ### <sub>startActivityIntent</sub> ###
2380
+ ```
2381
+ startActivityIntent(
2382
+ Intent intent: Intent in the format as returned from makeIntent,
2383
+ Boolean wait[optional]: block until the user exits the started activity)
2384
+
2385
+ Start Activity using Intent
2386
+ ```
2387
+
2388
+ ### <sub>startEventDispatcher</sub> ###
2389
+ ```
2390
+ startEventDispatcher(
2391
+ Integer port[optional, default 0]: Port to use)
2392
+
2393
+ Opens up a socket where you can read for events posted
2394
+ ```
2395
+
2396
+ ### <sub>startInteractiveVideoRecording</sub> ###
2397
+ ```
2398
+ startInteractiveVideoRecording(
2399
+ String path)
2400
+
2401
+ Starts the video capture application to record a video and saves it to the
2402
+ specified path.
2403
+ ```
2404
+
2405
+ ### <sub>startLocating</sub> ###
2406
+ ```
2407
+ startLocating(
2408
+ Integer minDistance[optional, default 60000]: minimum time between updates in
2409
+ milliseconds,
2410
+ Integer minUpdateDistance[optional, default 30]: minimum distance between
2411
+ updates in meters)
2412
+
2413
+ Starts collecting location data.
2414
+
2415
+ Generates "location" events.
2416
+ ```
2417
+
2418
+ ### <sub>startSensing</sub> ###
2419
+ ```
2420
+ startSensing(
2421
+ Integer sampleSize[optional, default 5]: number of samples for calculating
2422
+ average readings)
2423
+
2424
+ Starts recording sensor data to be available for polling.
2425
+
2426
+ Deprecated in 4! Please use startSensingTimed or startSensingThreshhold
2427
+ instead.
2428
+ ```
2429
+
2430
+ ### <sub>startSensingThreshold</sub> ###
2431
+ ```
2432
+ startSensingThreshold(
2433
+ Integer sensorNumber: 1 = Orientation, 2 = Accelerometer, 3 = Magnetometer and
2434
+ 4 = Light,
2435
+ Integer threshold: Threshold level for chosen sensor (integer),
2436
+ Integer axis: 0 = No axis, 1 = X, 2 = Y, 3 = X+Y, 4 = Z, 5= X+Z, 6 = Y+Z, 7 =
2437
+ X+Y+Z)
2438
+
2439
+ Records to the Event Queue sensor data exceeding a chosen threshold.
2440
+
2441
+ Generates "threshold" events.
2442
+ ```
2443
+
2444
+ ### <sub>startSensingTimed</sub> ###
2445
+ ```
2446
+ startSensingTimed(
2447
+ Integer sensorNumber: 1 = All, 2 = Accelerometer, 3 = Magnetometer and 4 =
2448
+ Light,
2449
+ Integer delayTime: Minimum time between readings in milliseconds)
2450
+
2451
+ Starts recording sensor data to be available for polling.
2452
+
2453
+ Generates "sensors" events.
2454
+ ```
2455
+
2456
+ ### <sub>startTrackingPhoneState</sub> ###
2457
+ ```
2458
+ startTrackingPhoneState()
2459
+
2460
+ Starts tracking phone state.
2461
+
2462
+ Generates "phone" events.
2463
+ ```
2464
+
2465
+ ### <sub>startTrackingSignalStrengths</sub> ###
2466
+ ```
2467
+ startTrackingSignalStrengths()
2468
+
2469
+ Starts tracking signal strengths.
2470
+
2471
+ Generates "signal_strengths" events.
2472
+
2473
+ Requires API Level 7.
2474
+ ```
2475
+
2476
+ ### <sub>stopEventDispatcher</sub> ###
2477
+ ```
2478
+ stopEventDispatcher()
2479
+
2480
+ Stops the event server, you can't read in the port anymore
2481
+ ```
2482
+
2483
+ ### <sub>stopLocating</sub> ###
2484
+ ```
2485
+ stopLocating()
2486
+
2487
+ Stops collecting location data.
2488
+ ```
2489
+
2490
+ ### <sub>stopSensing</sub> ###
2491
+ ```
2492
+ stopSensing()
2493
+
2494
+ Stops collecting sensor data.
2495
+ ```
2496
+
2497
+ ### <sub>stopTrackingPhoneState</sub> ###
2498
+ ```
2499
+ stopTrackingPhoneState()
2500
+
2501
+ Stops tracking phone state.
2502
+ ```
2503
+
2504
+ ### <sub>stopTrackingSignalStrengths</sub> ###
2505
+ ```
2506
+ stopTrackingSignalStrengths()
2507
+
2508
+ Stops tracking signal strength.
2509
+
2510
+ Requires API Level 7.
2511
+ ```
2512
+
2513
+ ### <sub>toggleAirplaneMode</sub> ###
2514
+ ```
2515
+ toggleAirplaneMode(
2516
+ Boolean enabled[optional])
2517
+
2518
+ Toggles airplane mode on and off.
2519
+
2520
+ Returns:
2521
+ True if airplane mode is enabled.
2522
+ ```
2523
+
2524
+ ### <sub>toggleBluetoothState</sub> ###
2525
+ ```
2526
+ toggleBluetoothState(
2527
+ Boolean enabled[optional],
2528
+ Boolean prompt[optional, default true]: Prompt the user to confirm changing
2529
+ the Bluetooth state.)
2530
+
2531
+ Toggle Bluetooth on and off.
2532
+
2533
+ Returns:
2534
+ True if Bluetooth is enabled.
2535
+
2536
+ Requires API Level 5.
2537
+ ```
2538
+
2539
+ ### <sub>toggleRingerSilentMode</sub> ###
2540
+ ```
2541
+ toggleRingerSilentMode(
2542
+ Boolean enabled[optional])
2543
+
2544
+ Toggles ringer silent mode on and off.
2545
+
2546
+ Returns:
2547
+ True if ringer silent mode is enabled.
2548
+ ```
2549
+
2550
+ ### <sub>toggleVibrateMode</sub> ###
2551
+ ```
2552
+ toggleVibrateMode(
2553
+ Boolean enabled[optional],
2554
+ Boolean ringer[optional])
2555
+
2556
+ Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else
2557
+ set Notification setting
2558
+
2559
+ Returns:
2560
+ True if vibrate mode is enabled.
2561
+ ```
2562
+
2563
+ ### <sub>toggleWifiState</sub> ###
2564
+ ```
2565
+ toggleWifiState(
2566
+ Boolean enabled[optional])
2567
+
2568
+ Toggle Wifi on and off.
2569
+
2570
+ Returns:
2571
+ True if Wifi is enabled.
2572
+ ```
2573
+
2574
+ ### <sub>ttsIsSpeaking</sub> ###
2575
+ ```
2576
+ ttsIsSpeaking()
2577
+
2578
+ Returns True if speech is currently in progress.
2579
+
2580
+ Requires API Level 4.
2581
+ ```
2582
+
2583
+ ### <sub>ttsSpeak</sub> ###
2584
+ ```
2585
+ ttsSpeak(
2586
+ String message)
2587
+
2588
+ Speaks the provided message via TTS.
2589
+
2590
+ Requires API Level 4.
2591
+ ```
2592
+
2593
+ ### <sub>vibrate</sub> ###
2594
+ ```
2595
+ vibrate(
2596
+ Integer duration[optional, default 300]: duration in milliseconds)
2597
+
2598
+ Vibrates the phone or a specified duration in milliseconds.
2599
+ ```
2600
+
2601
+ ### <sub>view</sub> ###
2602
+ ```
2603
+ view(
2604
+ String uri,
2605
+ String type[optional]: MIME type/subtype of the URI,
2606
+ JSONObject extras[optional]: a Map of extras to add to the Intent)
2607
+
2608
+ Start activity with view action by URI (i.e. browser, contacts, etc.).
2609
+ ```
2610
+
2611
+ ### <sub>viewContacts</sub> ###
2612
+ ```
2613
+ viewContacts()
2614
+
2615
+ Opens the list of contacts.
2616
+ ```
2617
+
2618
+ ### <sub>viewHtml</sub> ###
2619
+ ```
2620
+ viewHtml(
2621
+ String path: the path to the HTML file)
2622
+
2623
+ Opens the browser to display a local HTML file.
2624
+ ```
2625
+
2626
+ ### <sub>viewMap</sub> ###
2627
+ ```
2628
+ viewMap(
2629
+ String query, e.g. pizza, 123 My Street)
2630
+
2631
+ Opens a map search for query (e.g. pizza, 123 My Street).
2632
+ ```
2633
+
2634
+ ### <sub>waitForEvent</sub> ###
2635
+ ```
2636
+ waitForEvent(
2637
+ String eventName,
2638
+ Integer timeout[optional]: the maximum time to wait)
2639
+
2640
+ Blocks until an event with the supplied name occurs. The returned event is not
2641
+ removed from the buffer.
2642
+
2643
+ Returns:
2644
+ Map of event properties.
2645
+
2646
+ Deprecated in r4! Please use eventWaitFor instead.
2647
+ ```
2648
+
2649
+ ### <sub>wakeLockAcquireBright</sub> ###
2650
+ ```
2651
+ wakeLockAcquireBright()
2652
+
2653
+ Acquires a bright wake lock (CPU on, screen bright).
2654
+ ```
2655
+
2656
+ ### <sub>wakeLockAcquireDim</sub> ###
2657
+ ```
2658
+ wakeLockAcquireDim()
2659
+
2660
+ Acquires a dim wake lock (CPU on, screen dim).
2661
+ ```
2662
+
2663
+ ### <sub>wakeLockAcquireFull</sub> ###
2664
+ ```
2665
+ wakeLockAcquireFull()
2666
+
2667
+ Acquires a full wake lock (CPU on, screen bright, keyboard bright).
2668
+ ```
2669
+
2670
+ ### <sub>wakeLockAcquirePartial</sub> ###
2671
+ ```
2672
+ wakeLockAcquirePartial()
2673
+
2674
+ Acquires a partial wake lock (CPU on).
2675
+ ```
2676
+
2677
+ ### <sub>wakeLockRelease</sub> ###
2678
+ ```
2679
+ wakeLockRelease()
2680
+
2681
+ Releases the wake lock.
2682
+ ```
2683
+
2684
+ ### <sub>webViewShow</sub> ###
2685
+ ```
2686
+ webViewShow(
2687
+ String url,
2688
+ Boolean wait[optional]: block until the user exits the WebView)
2689
+
2690
+ Display a WebView with the given URL.
2691
+ ```
2692
+
2693
+ ### <sub>webcamAdjustQuality</sub> ###
2694
+ ```
2695
+ webcamAdjustQuality(
2696
+ Integer resolutionLevel[optional, default 0]: increasing this number provides
2697
+ higher resolution,
2698
+ Integer jpegQuality[optional, default 20]: a number from 0-100)
2699
+
2700
+ Adjusts the quality of the webcam stream while it is running.
2701
+
2702
+ Requires API Level 8.
2703
+ ```
2704
+
2705
+ ### <sub>webcamStart</sub> ###
2706
+ ```
2707
+ webcamStart(
2708
+ Integer resolutionLevel[optional, default 0]: increasing this number provides
2709
+ higher resolution,
2710
+ Integer jpegQuality[optional, default 20]: a number from 0-100,
2711
+ Integer port[optional, default 0]: If port is specified, the webcam service
2712
+ will bind to port, otherwise it will pick any available port.)
2713
+
2714
+ Starts an MJPEG stream and returns a Tuple of address and port for the stream.
2715
+
2716
+ Requires API Level 8.
2717
+ ```
2718
+
2719
+ ### <sub>webcamStop</sub> ###
2720
+ ```
2721
+ webcamStop()
2722
+
2723
+ Stops the webcam stream.
2724
+
2725
+ Requires API Level 8.
2726
+ ```
2727
+
2728
+ ### <sub>wifiDisconnect</sub> ###
2729
+ ```
2730
+ wifiDisconnect()
2731
+
2732
+ Disconnects from the currently active access point.
2733
+
2734
+ Returns:
2735
+ True if the operation succeeded.
2736
+ ```
2737
+
2738
+ ### <sub>wifiGetConnectionInfo</sub> ###
2739
+ ```
2740
+ wifiGetConnectionInfo()
2741
+
2742
+ Returns information about the currently active access point.
2743
+ ```
2744
+
2745
+ ### <sub>wifiGetScanResults</sub> ###
2746
+ ```
2747
+ wifiGetScanResults()
2748
+
2749
+ Returns the list of access points found during the most recent Wifi scan.
2750
+ ```
2751
+
2752
+ ### <sub>wifiLockAcquireFull</sub> ###
2753
+ ```
2754
+ wifiLockAcquireFull()
2755
+
2756
+ Acquires a full Wifi lock.
2757
+ ```
2758
+
2759
+ ### <sub>wifiLockAcquireScanOnly</sub> ###
2760
+ ```
2761
+ wifiLockAcquireScanOnly()
2762
+
2763
+ Acquires a scan only Wifi lock.
2764
+ ```
2765
+
2766
+ ### <sub>wifiLockRelease</sub> ###
2767
+ ```
2768
+ wifiLockRelease()
2769
+
2770
+ Releases a previously acquired Wifi lock.
2771
+ ```
2772
+
2773
+ ### <sub>wifiReassociate</sub> ###
2774
+ ```
2775
+ wifiReassociate()
2776
+
2777
+ Reassociates with the currently active access point.
2778
+
2779
+ Returns:
2780
+ True if the operation succeeded.
2781
+ ```
2782
+
2783
+ ### <sub>wifiReconnect</sub> ###
2784
+ ```
2785
+ wifiReconnect()
2786
+
2787
+ Reconnects to the currently active access point.
2788
+
2789
+ Returns:
2790
+ True if the operation succeeded.
2791
+ ```
2792
+
2793
+ ### <sub>wifiStartScan</sub> ###
2794
+ ```
2795
+ wifiStartScan()
2796
+
2797
+ Starts a scan for Wifi access points.
2798
+
2799
+ Returns:
2800
+ True if the scan was initiated successfully.
2801
+ ```
agent_for_ui/agent_for_api/__pycache__/API_list.cpython-311.pyc ADDED
Binary file (11.6 kB). View file
 
agent_for_ui/agent_for_api/__pycache__/API_list.cpython-312.pyc ADDED
Binary file (11.6 kB). View file
 
agent_for_ui/agent_for_api/__pycache__/agent_api_prompt.cpython-311.pyc ADDED
Binary file (12.8 kB). View file
 
agent_for_ui/agent_for_api/__pycache__/agent_api_prompt.cpython-312.pyc ADDED
Binary file (9.1 kB). View file
 
agent_for_ui/agent_for_api/__pycache__/main_for_api.cpython-311.pyc ADDED
Binary file (5.69 kB). View file
 
agent_for_ui/agent_for_api/__pycache__/main_for_api.cpython-312.pyc ADDED
Binary file (5.1 kB). View file
 
agent_for_ui/agent_for_api/agent_api_prompt.py ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from agent_for_api.API_list import *
2
+ select_api_prompt = '''
3
+ You are the largest large language model agent stored on the phone.
4
+ It will give you a list of APIs that the phone can call, the tasks that need to be completed, what has been done, and what needs to be done now.
5
+ You need to choose one of the above APIs to complete the action that needs to be completed now.
6
+ You should not use the API to complete the work that has been completed by the UI interaction components in the previous steps.
7
+ Your decision should consider the following factors:
8
+ 1. You must only choose one API that should be executed most at the moment to complete the first action in next action.
9
+ 2. If there is no suitable API, you only need to say sorry without providing any additional suggestions.
10
+ The string in <> needs to be replaced with specific parameters and must return a fully executable adb command.
11
+ API list: {api_list}
12
+ Below are some examples.
13
+ -----
14
+ {select_api_example}
15
+ -----
16
+
17
+ Your [Answer] can only follow the two templates: "Yes, the most suitable api function call is [adb command]" or "Sorry,[explain]"
18
+ [Task]: {task}
19
+ [Planning]: {planning}
20
+ [UI information]: {ui_information}
21
+ [Actions History]: {memory}
22
+ [WARNING]: It is strictly prohibited to use any commands other than the ADB commands listed in the API list.
23
+ [Answer]:
24
+ '''
25
+ #
26
+ # shell 似乎可以直接调用基本运算,这是意料之外的事情。
27
+ #
28
+ '''
29
+ Notice!
30
+ You must choose only one API that should be executed most at present and give the specific adb command in [].
31
+ The API you choose must come from the API list. APIs from unknown sources are prohibited from being used.
32
+ If an API command fails to execute in the actions history, you should no longer use it as an answer.
33
+ '''
34
+
35
+ select_api_example = '''
36
+ Example 1:
37
+ [Task]:I'm going to travel to Beijing next week. Please help me determine the hotel and specific time.
38
+ [Planning]: Open the travel APP, check Beijing hotels, sort by rating, recommend the top three, then open Google search, search and check the weather conditions in Beijing next week.
39
+ [UI inforamtion]:
40
+ <div id="com.google.android.apps.nexuslauncher:id/workspace" class="android.widget.ScrollView" clickable="false" scrollable="true" bounds="[0,0][1080,1857]"> </div>
41
+ <p class="android.widget.TextView" description="ClevCalc" clickable="true"> ClevCalc </p>
42
+ <p class="android.widget.TextView" description="New event" clickable="true"> New event </p>
43
+ <p class="android.widget.TextView" description="Traveloka" clickable="true"> Traveloka </p>
44
+ <p class="android.widget.TextView" description="Weather" clickable="true"> Weather </p>
45
+ <p class="android.widget.TextView" description="Clock" clickable="true"> Clock </p>
46
+ <p class="android.widget.TextView" description="Maps" clickable="true"> Maps </p>
47
+ <p class="android.widget.TextView" description="Play Store" clickable="true"> Play Store </p>
48
+ <p class="android.widget.TextView" description="Agent-LLM" clickable="true"> Agent-LLM </p>
49
+ <div class="android.view.View" description="Home" clickable="false"> </div>
50
+ <p class="android.widget.TextView" description="Phone" clickable="true"> Phone </p>
51
+ <p class="android.widget.TextView" description="Messages" clickable="true"> Messages </p>
52
+ <p class="android.widget.TextView" description="Play Store" clickable="true"> Play Store </p>
53
+ <p class="android.widget.TextView" description="Chrome" clickable="true"> Chrome </p>
54
+ <p class="android.widget.TextView" description="Camera" clickable="true"> Camera </p>
55
+ <img id="com.google.android.apps.nexuslauncher:id/g_icon" class="android.widget.ImageView" description="Google app" clickable="true"> </img>
56
+ <img id="com.google.android.apps.nexuslauncher:id/mic_icon" class="android.widget.ImageView" description="Voice search" clickable="true"> </img>
57
+ <button id="com.google.android.apps.nexuslauncher:id/lens_icon" class="android.widget.ImageButton" description="Google Lens" clickable="true"> </button>
58
+ [Actions history]: No action has been completed yet
59
+ [Thought]: I am on the home page. No action has been completed yet. I will open the Traveloka app first and check the flight.
60
+ [Answer]:Yes, the most suitable api function call is [adb shell am start -n com.traveloka.android/.appentry.splash.SplashActivity]
61
+
62
+ Example 2:
63
+ [Task]: Recommend to me the most suitable ticket to Beijing this Saturday
64
+ [Planning]:
65
+ 1. Open Traveloka:
66
+ - Search for flights from Chengdu to Beijing for the desired date.
67
+ - Take screenshots of the flight options, including prices and timings.
68
+ - Save the screenshots in a designated folder on your phone for easy access.
69
+ [UI information]:
70
+ <button id="com.traveloka.android:id/tray_text_button_left" class="android.widget.Button" clickable="true"> </button>
71
+ <p id="com.traveloka.android:id/tray_title" class="android.widget.TextView" clickable="false"> Your Trip </p>
72
+ <button id="com.traveloka.android:id/tray_text_button" class="android.widget.Button" clickable="true"> </button>
73
+ <button id="com.traveloka.android:id/tray_text_button2" class="android.widget.Button" clickable="true"> </button>
74
+ <p id="com.traveloka.android.flight:id/text_title_journey" class="android.widget.TextView" clickable="true"> Chengdu Beijing </p>
75
+ <p id="com.traveloka.android.flight:id/text_card_title_departure" class="android.widget.TextView" clickable="true"> Sat, 25 Nov 2023 </p>
76
+ <p id="com.traveloka.android.flight:id/text_departure_time" class="android.widget.TextView" clickable="true"> 07:20 </p>
77
+ <p id="com.traveloka.android.flight:id/text_flight_duration" class="android.widget.TextView" clickable="true"> 2h 40m </p>
78
+ <p id="com.traveloka.android.flight:id/text_arrival_time" class="android.widget.TextView" clickable="true"> 10:00 </p>
79
+ <p id="com.traveloka.android.flight:id/badge_departure_airport" class="android.widget.TextView" clickable="true"> CTU </p>
80
+ <p id="com.traveloka.android.flight:id/text_flight_transit" class="android.widget.TextView" clickable="true"> Direct </p>
81
+ <p id="com.traveloka.android.flight:id/badge_arrival_airport" class="android.widget.TextView" clickable="true"> PKX </p>
82
+ <p id="com.traveloka.android.flight:id/text_airline_name" class="android.widget.TextView" clickable="true"> China Eastern Airlines </p>
83
+ <p id="com.traveloka.android.flight:id/text_seat_class" class="android.widget.TextView" clickable="true"> Economy </p>
84
+ <p id="com.traveloka.android.flight:id/text_details" class="android.widget.TextView" clickable="true"> Details </p>
85
+ <p id="com.traveloka.android.flight:id/text_title" class="android.widget.TextView" clickable="false"> Your ticket type </p>
86
+ <p id="com.traveloka.android.flight:id/text_title" class="android.widget.TextView" clickable="true"> Original </p>
87
+ <p id="com.traveloka.android.flight:id/text_price" class="android.widget.TextView" clickable="true"> USD 125.71 </p>
88
+ <p id="com.traveloka.android.flight:id/text_per_pax" class="android.widget.TextView" clickable="true"> /pax </p>
89
+ <p id="com.traveloka.android.flight:id/text" class="android.widget.TextView" clickable="true"> Cabin baggage 1 x 5 kg </p>
90
+ <p id="com.traveloka.android.flight:id/text" class="android.widget.TextView" clickable="true"> Baggage 1 x 20 kg </p>
91
+ <p id="com.traveloka.android.flight:id/text" class="android.widget.TextView" clickable="true"> Reschedule not available </p>
92
+ <p id="com.traveloka.android.flight:id/text" class="android.widget.TextView" clickable="true"> Refund info unavailable </p>
93
+ <p id="com.traveloka.android.flight:id/text_see_detail" class="android.widget.TextView" clickable="true"> Learn more </p>
94
+ <p id="com.traveloka.android.flight:id/text_view_label" class="android.widget.TextView" clickable="true"> Total price for 1 person(s) </p>
95
+ <p class="android.widget.TextView" description="pre_booking_price" clickable="true"> USD 125.71 </p>
96
+ <p id="com.traveloka.android.flight:id/text_description" class="android.widget.TextView" clickable="true"> Inclusive of all fares & taxes </p>
97
+ <button id="com.traveloka.android.flight:id/button_select" class="android.widget.Button" clickable="true"> Continue </button>
98
+ [Actions history]:
99
+ {'[API call]': 'adb shell am start -n com.traveloka.android/.appentry.splash.SplashActivity. [Call result]:API execution successful'}
100
+ {'[Action]': 'click(<p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Flights </p>)'}
101
+ {'[Action]': 'click(<input id="com.traveloka.android:id/edit_text_field" class="android.widget.EditText" clickable="true"> Saturday, 25 Nov 2023 </input>)'}
102
+ {'[Action]': 'click(<div id="com.traveloka.android:id/calendar_date_text" class="android.view.View" description="25" clickable="true"> </div>)'}
103
+ {'[Action]': 'click(<button id="com.traveloka.android.flight:id/btn_search" class="android.widget.Button" description="flight_searchform_button_search" clickable="true"> Search </button>)'}
104
+ {'[Action]': 'click(<p id="com.traveloka.android.flight:id/text_flight_name" class="android.widget.TextView" description="text_view_flight_name " clickable="true"> China Eastern Airlines </p>)'}
105
+
106
+ [Thought]: I have already opened the traveloka, searched for flight from chengdu to beijing this Saturday, And i found the cheapest flight. Then, I will take the screenshot and save it.
107
+ [Answer]:Yes, the most suitable api function call is [adb shell screencap -p /sdcard/flight_info.png]
108
+ '''
109
+ # Task: 今晚8点要洗衣服, 请建立备忘录提醒我
110
+ # Ans:Yes, the api function call is :"adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.item/event --es title "洗衣服" --es description "今晚不要忘记洗衣服" --ez allDay false --ei beginTime 1662820800000 --ei endTime 1662824400000"
111
+ '''
112
+ Example 1:
113
+ [Task]:Hello, I plan to travel from Chengdu to Beijing on business next week to attend the Xiaomi Technology Park meeting on Sunday. Please help me plan the specific travel time and mode, and make simple suggestions.
114
+
115
+ [Planning]: To plan your travel from Chengdu to Beijing, we can use the following apps:
116
+
117
+ 1. Open Traveloka:
118
+ - Search for flights from Chengdu to Beijing for the desired date.
119
+ - Take screenshots of the flight options, including prices and timings.
120
+ - Save the screenshots in a designated folder on your phone for easy access.
121
+
122
+ 2. Open Weather:
123
+ - Check the weather forecast for both Chengdu and Beijing for the upcoming week.
124
+ - Take screenshots of the weather forecast for each city.
125
+ - Save the screenshots in the same folder as the flight options.
126
+
127
+ 3. Open New event:
128
+ - Create a memo titled "Travel Plan to Beijing."
129
+ - Write down the recommended flight options, including the airline, departure time, and arrival time.
130
+ - Mention the weather conditions in Chengdu and Beijing for the travel dates.
131
+ - Save the memo for easy review.
132
+
133
+ By using Traveloka, Weather, and New event apps, you can gather the necessary information and save it on your phone for future reference. Remember, this plan does not involve directly booking the tickets; it's solely for collecting information and making suggestions.
134
+ [UI information]:
135
+ <div id="com.traveloka.android:id/recycler_view" class="androidx.recyclerview.widget.RecyclerView" clickable="false" scrollable="true" bounds="[0,63][1080,1723]"> </div>
136
+ <p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Flights </p>
137
+ <p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Hotels </p>
138
+ <p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Xperience </p>
139
+ <p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Airport Transfer </p>
140
+ <p id="com.traveloka.android:id/text_view_product_text" class="android.widget.TextView" clickable="true"> Car Rental </p>
141
+ <p id="com.traveloka.android:id/text_background_banner" class="android.widget.TextView" clickable="false"> Get access to Traveloka's complete features by choosing to enable location service all the time. </p>
142
+ <p id="com.traveloka.android:id/text_allow_background" class="android.widget.TextView" clickable="false"> Enable </p>
143
+ <p id="com.traveloka.android:id/text_widget_item_description" class="android.widget.TextView" clickable="true"> You're missing security alerts, booking updates, and chat replies. </p>
144
+ <p id="com.traveloka.android:id/text_widget_item_button" class="android.widget.TextView" clickable="true"> Check notification settings </p>
145
+ <p id="com.traveloka.android:id/text_view_title" class="android.widget.TextView" clickable="true"> Flight Discount up to 10% is yours! </p>
146
+ <p id="com.traveloka.android:id/text_view_subtitle" class="android.widget.TextView" clickable="true"> Just book a trip and explore the world </p>
147
+ <p id="com.traveloka.android:id/text_more_button" class="android.widget.TextView" clickable="true"> More </p>
148
+ <button id="com.traveloka.android:id/icon_notification" class="android.widget.ImageButton" description="Open Notification" clickable="true"> </button>
149
+ <button id="com.traveloka.android:id/icon_inbox" class="android.widget.ImageButton" description="Open Inbox" clickable="true"> </button>
150
+ <p id="com.traveloka.android:id/text_label" class="android.widget.TextView" clickable="true"> Home </p>
151
+ <p id="com.traveloka.android:id/text_label" class="android.widget.TextView" clickable="true"> Explore </p>
152
+ <p id="com.traveloka.android:id/text_label" class="android.widget.TextView" clickable="true"> Bookings </p>
153
+ <p id="com.traveloka.android:id/text_label" class="android.widget.TextView" clickable="true"> Saved </p>
154
+ <p id="com.traveloka.android:id/text_label" class="android.widget.TextView" clickable="true"> My Account </p>
155
+
156
+ [Actions history]:
157
+ {'[API call]': 'adb shell am start -n com.traveloka.android/.appentry.splash.SplashActivity. [Call result]:API execution successful'}
158
+
159
+ [Thought]: Based on the changes in UI information and action history, the following steps have been completed:
160
+
161
+ 1. The Traveloka app was opened by clicking on the "Traveloka" option.
162
+ 2. The app successfully launched, and the current UI information shows the available products: Flights, Hotels, Xperience, Airport Transfer, and Car Rental.
163
+
164
+ Next, you should perform the following actions:
165
+
166
+ 1. Click on the "Flights" option in the Traveloka app to search for flights.
167
+ 2. Enter the necessary travel details, such as the origin (Chengdu) and destination (Beijing), and select the desired travel dates.
168
+ 3. Take screenshots of the flight options, including prices and timings.
169
+ 4. Save the screenshots in a designated folder on your phone for easy access.
170
+ 5. Open the Weather app to check the weather forecast for both Chengdu and Beijing for the upcoming week.
171
+ 6. Take screenshots of the weather forecast for each city.
172
+ 7. Save the weather forecast screenshots in the same folder as the flight options.
173
+ 8. Open the New event app and create a memo titled "Travel Plan to Beijing."
174
+ 9. Write down the recommended flight options, including the airline, departure time, and arrival time.
175
+ 10. Mention the weather conditions in Chengdu and Beijing for the travel dates.
176
+ 11. Save the memo for easy review.
177
+
178
+ Remember, this plan does not involve directly booking the tickets but focuses on collecting information and making suggestions.
179
+
180
+ [Answer]:Sorry, the next action is to click the "Flights" option. I cannot complete it through the appropriate API. I suggest handing over this task to the UI interaction module.
181
+
182
+
183
+
184
+ Example 1:
185
+ [Task description]: Calculate 9.5×5+2
186
+ [Planning]: Open a computing-related application and click the buttons one by one.
187
+ [UI information]:
188
+ <img class="android.widget.ImageView" description="小窗" clickable="true"> </img>
189
+ <p class="android.widget.TextView" clickable="true"> 计算 </p>
190
+ <p class="android.widget.TextView" clickable="true"> 换算 </p>
191
+ <img id="com.miui.calculator:id/more" class="android.widget.ImageView" description="更多选项" clickable="true"> </img>
192
+ <div id="com.miui.calculator:id/view_pager" class="androidx.viewpager.widget.OriginalViewPager" clickable="false" scrollable="true" bounds="[0,275][1080,2400]"> </div>
193
+ <div id="com.miui.calculator:id/expression" class="android.view.View" description="9.5×5" clickable="true"> </div>
194
+ <p id="com.miui.calculator:id/result" class="android.widget.TextView" description="= 47.5" clickable="true"> = 47.5 </p>
195
+ <img id="com.miui.calculator:id/btn_c_s" class="android.widget.ImageView" description="清除" clickable="true"> </img>
196
+ <p id="com.miui.calculator:id/digit_7" class="android.widget.TextView" clickable="true"> 7 </p>
197
+ <p id="com.miui.calculator:id/digit_4" class="android.widget.TextView" clickable="true"> 4 </p>
198
+ <p id="com.miui.calculator:id/digit_1" class="android.widget.TextView" clickable="true"> 1 </p>
199
+ <img id="com.miui.calculator:id/btn_switch" class="android.widget.ImageView" description="切换" clickable="true"> </img>
200
+ <img id="com.miui.calculator:id/btn_del_s" class="android.widget.ImageView" description="退格" clickable="true"> </img>
201
+ <p id="com.miui.calculator:id/digit_8" class="android.widget.TextView" clickable="true"> 8 </p>
202
+ <p id="com.miui.calculator:id/digit_5" class="android.widget.TextView" clickable="true"> 5 </p>
203
+ <p id="com.miui.calculator:id/digit_2" class="android.widget.TextView" clickable="true"> 2 </p>
204
+ <p id="com.miui.calculator:id/digit_0" class="android.widget.TextView" clickable="true"> 0 </p>
205
+ <img id="com.miui.calculator:id/op_pct" class="android.widget.ImageView" description="百分号" clickable="true"> </img>
206
+ <p id="com.miui.calculator:id/digit_9" class="android.widget.TextView" clickable="true"> 9 </p>
207
+ <p id="com.miui.calculator:id/digit_6" class="android.widget.TextView" clickable="true"> 6 </p>
208
+ <p id="com.miui.calculator:id/digit_3" class="android.widget.TextView" clickable="true"> 3 </p>
209
+ <p id="com.miui.calculator:id/dec_point" class="android.widget.TextView" description="小数点" clickable="true"> . </p>
210
+ <img id="com.miui.calculator:id/op_div" class="android.widget.ImageView" description="除" clickable="true"> </img>
211
+ <img id="com.miui.calculator:id/op_mul" class="android.widget.ImageView" description="乘" clickable="true"> </img>
212
+ <img id="com.miui.calculator:id/op_sub" class="android.widget.ImageView" description="减" clickable="true"> </img>
213
+ <img id="com.miui.calculator:id/op_add" class="android.widget.ImageView" description="加" clickable="true"> </img>
214
+ <img id="com.miui.calculator:id/btn_equal_s" class="android.widget.ImageView" description="等于" clickable="true"> </img>
215
+ [Actions history]:
216
+ adb shell am start -n com.cleveni.app.calculator/com.cleveni.app.calculator.MainActivity
217
+ click(<p id="com.miui.calculator:id/digit_9" class="android.widget.TextView" clickable="true"> 9, </p>)
218
+ click(<p id="com.miui.calculator:id/dec_point" class="android.widget.TextView" description="小数点" clickable="true"> . </p>)
219
+ click(<p id="com.miui.calculator:id/digit_5" class="android.widget.TextView" clickable="true"> 5, </p>)
220
+ click(<img id="com.miui.calculator:id/op_mul" class="android.widget.ImageView" description="乘" clickable="true"> </img>)
221
+ [Thought]: Calculate 9.5×5+2, I have clicked on 9.5 and the multiplication sign, now I should click on 5.
222
+ Ans:Sorry, I can't help you click on 5 with suitbale api. I suggest handing over this task to the UI interaction module.
223
+
224
+ '''
agent_for_ui/agent_for_api/api_list.json ADDED
@@ -0,0 +1,626 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "日历": [
3
+ {
4
+ "ADB Command": "adb shell am start -n com.android.calendar/.AllInOneActivity\n",
5
+ "Function Description": "启动日历到主界面",
6
+ "Parameter Information": "No additional parameters required."
7
+ },
8
+ {
9
+ "ADB Command": "adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.item/event -e \"title\" <x> --es \"beginTime\" \"<startTimestamp>\" --es \"endTime\" \"<endtimestamp>\"",
10
+ "Function Description": "Create a new calendar event with pre-populated title",
11
+ "Parameter Information": "Replace <x> with the event title, <start timestamp> and <end timestamp> are replaced with the timestamps of the event's start and end times respectively"
12
+ }
13
+ ],
14
+ "时钟": [
15
+ {
16
+ "ADB Command": "adb shell am start -a android.intent.action.SET_ALARM --ei android.intent.extra.alarm.HOUR <x> --ei android.intent.extra.alarm.MINUTES <y>",
17
+ "Function Description": "Triggers an intent to open the alarm clock application with a pre-filled time for setting a new alarm.",
18
+ "Parameter Information": "Replace <x> with the hour and <y> with the minutes for the alarm time. For example, for an alarm set at 7:15, <x> would be 7 and <y> would be 15."
19
+ },
20
+ {
21
+ "ADB Command": "adb shell am start -n com.android.deskclock/.DeskClockTabActivity\n",
22
+ "Function Description": "启动时钟到主界面",
23
+ "Parameter Information": "No additional parameters required."
24
+ },
25
+ {
26
+ "ADB Command": "adb shell am start -a android.intent.action.EDIT -d deskclock://details/edit",
27
+ "Function Description": "编辑世界时钟",
28
+ "Parameter Information": "No additional parameters required."
29
+ },
30
+ {
31
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d deskclock://deskclock.android.com/main/SettingsActivity",
32
+ "Function Description": "打开时钟设置,铃声、音量、响铃时长",
33
+ "Parameter Information": "No additional parameters required."
34
+ },
35
+ {
36
+ "ADB Command": "adb shell am start -a com.android.deskclock.shortcut.START_TIMER",
37
+ "Function Description": "启动计时器",
38
+ "Parameter Information": "No additional parameters required."
39
+ },
40
+ {
41
+ "ADB Command": "adb shell am start -a com.android.deskclock.shortcut.STOP_WATCH",
42
+ "Function Description": "启动秒表",
43
+ "Parameter Information": "No additional parameters required."
44
+ }
45
+ ],
46
+ "通用按键": [
47
+ {
48
+ "ADB Command": "adb shell input keyevent KEYCODE_BACK",
49
+ "Function Description": "Return to previous page",
50
+ "Parameter Information": "No additional parameters required."
51
+ },
52
+ {
53
+ "ADB Command": "adb shell input keyevent KEYCODE_HOME",
54
+ "Function Description": "go to home page, which is equal to click the home button",
55
+ "Parameter Information": "No additional parameters required."
56
+ },
57
+ {
58
+ "ADB Command": "adb shell input keyevent KEYCODE_SLEEP",
59
+ "Function Description": "Set the device to sleep",
60
+ "Parameter Information": "No additional parameters required."
61
+ },
62
+ {
63
+ "ADB Command": "adb shell screencap -p /sdcard/screenshot.png",
64
+ "Function Description": "Takes a screenshot and saves it.",
65
+ "Parameter Information": "No additional parameters required."
66
+ },
67
+ {
68
+ "ADB Command": "adb shell input keyevent KEYCODE_WAKEUP",
69
+ "Function Description": "Wake up the device",
70
+ "Parameter Information": "No additional parameters required."
71
+ }
72
+ ],
73
+ "系统": [
74
+ {
75
+ "ADB Command": "adb shell svc wifi enable",
76
+ "Function Description": "Open wifi connection",
77
+ "Parameter Information": "No additional parameters required."
78
+ },
79
+ {
80
+ "ADB Command": "adb shell svc wifi disable",
81
+ "Function Description": "Close wifi connection",
82
+ "Parameter Information": "No additional parameters required."
83
+ },
84
+ {
85
+ "ADB Command": "adb shell am start -a android.settings.SETTINGS",
86
+ "Function Description": "Open the system settings.",
87
+ "Parameter Information": "No additional parameters required."
88
+ },
89
+ {
90
+ "ADB Command": "adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE",
91
+ "Function Description": "Open bluetooth",
92
+ "Parameter Information": "No additional parameters required."
93
+ },
94
+ {
95
+ "ADB Command": "adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISABLE",
96
+ "Function Description": "Close bluetooth",
97
+ "Parameter Information": "No additional parameters required."
98
+ },
99
+ {
100
+ "ADB Command": "adb shell svc data enable",
101
+ "Function Description": "Open Data flow switch",
102
+ "Parameter Information": "No additional parameters required."
103
+ },
104
+ {
105
+ "ADB Command": "adb shell svc data disable",
106
+ "Function Description": "Close Data flow switch",
107
+ "Parameter Information": "No additional parameters required."
108
+ },
109
+ {
110
+ "ADB Command": "adb shell settings put system screen_brightness <brightness_value>",
111
+ "Function Description": "Change screen brightness (0-255)",
112
+ "Parameter Information": "Replace <brightness_value> with a number from 0 to 255"
113
+ }
114
+ ],
115
+ "QQ音乐": [
116
+ {
117
+ "ADB Command": "adb shell am start -n com.tencent.qqmusic/.third.DispacherActivityForThird",
118
+ "Function Description": "打开QQ音乐到主界面",
119
+ "Parameter Information": "No additional parameters required."
120
+ },
121
+ {
122
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d <file:///path/to/your/music.mp3> -t audio/mp3 com.tencent.qqmusic/.activity.AppStarterActivity",
123
+ "Function Description": "播放本地的MP3文件",
124
+ "Parameter Information": "替换 /path/to/your/music.mp3 为实际文件路径。"
125
+ },
126
+ {
127
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d http://[音乐流URL] com.tencent.qqmusic/.activity.AppStarterActivity\n",
128
+ "Function Description": "打开指定的网页音乐流",
129
+ "Parameter Information": "替换 [音乐流URL] 为实际音乐流的网址"
130
+ }
131
+ ],
132
+ "天气": [
133
+ {
134
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d weather://weather2.miui.com/main com.miui.weather2/.ActivityWeatherMain\n",
135
+ "Function Description": "打开天气APP的主界面",
136
+ "Parameter Information": "No additional parameters required."
137
+ },
138
+ {
139
+ "ADB Command": "adb shell am start -a android.intent.action.EDIT -d weather://details com.miui.weather2/.view.EditDeeplinkActivity\n",
140
+ "Function Description": "编辑天气详情页面",
141
+ "Parameter Information": "No additional parameters required."
142
+ },
143
+ {
144
+ "ADB Command": "adb shell am start -a com.miui.weather.widget_city_manager com.miui.weather2/.ActivitySearchCity",
145
+ "Function Description": "搜索城市,添加新城市的天气",
146
+ "Parameter Information": "No additional parameters required."
147
+ },
148
+ {
149
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d weather://weather2.miui.com/dailyforcast/detail com.miui.weather2/.ActivityDailyForecastDetail",
150
+ "Function Description": "查看当前城市的天气详情",
151
+ "Parameter Information": "No additional parameters required."
152
+ },
153
+ {
154
+ "ADB Command": "adb shell am start -a miui.intent.action.weather -d weather://weather2.miui.com/dailyforcast/detail com.miui.weather2/.ActivityDailyForecastDetail",
155
+ "Function Description": "查看特定日期的天气预报",
156
+ "Parameter Information": "No additional parameters required."
157
+ }
158
+ ],
159
+ "计算器": [
160
+ {
161
+ "ADB Command": "adb shell am start -n com.miui.calculator/.cal.CalculatorActivity",
162
+ "Function Description": "启动计算器主界面",
163
+ "Parameter Information": "No additional parameters required."
164
+ },
165
+ {
166
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.SCIENTIFIC_MODE",
167
+ "Function Description": "启动科学计算器模式",
168
+ "Parameter Information": "No additional parameters required."
169
+ },
170
+ {
171
+ "ADB Command": "adb shell am start -n com.miui.calculator/.convert.CurrencyActivity",
172
+ "Function Description": "打开货币转换功能",
173
+ "Parameter Information": "No additional parameters required."
174
+ },
175
+ {
176
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.TAX",
177
+ "Function Description": "打开税务计算器",
178
+ "Parameter Information": "No additional parameters required."
179
+ },
180
+ {
181
+ "ADB Command": "adb shell am start -a com.miui.calculator.action.MORTGAGE",
182
+ "Function Description": "打开房贷计算器",
183
+ "Parameter Information": "No additional parameters required."
184
+ }
185
+ ],
186
+ "文件管理": [
187
+ {
188
+ "ADB Command": "adb shell am start -n com.android.fileexplorer/.FileExplorerTabActivity",
189
+ "Function Description": "启动文件管理器到主界面",
190
+ "Parameter Information": "No additional parameters required."
191
+ },
192
+ {
193
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d <file path> -t <file type>",
194
+ "Function Description": "打开特定文件类型",
195
+ "Parameter Information": "将<file path>替换为目标文件的绝对路径, 例如file:///path/to/your/file.pdf <file type>替换为目标文件的类型,例如:application/pdf"
196
+ },
197
+ {
198
+ "ADB Command": "adb shell am start -a com.android.fileexplorer.search -d content://com.android.fileexplorer.myprovider/search_suggest_query?query=<YourSearchQuery>",
199
+ "Function Description": "搜索文件",
200
+ "Parameter Information": "将<YourSearchQuery>替换为匹配条件"
201
+ },
202
+ {
203
+ "ADB Command": "adb shell am start -a android.intent.action.GET_CONTENT -t */*",
204
+ "Function Description": "启动一个内��选择器,允许用户在设备上选择任何类型的文件。",
205
+ "Parameter Information": "No additional parameters required."
206
+ }
207
+ ],
208
+ "高德地图": [
209
+ {
210
+ "ADB Command": "adb shell am start -n com.autonavi.minimap/com.autonavi.map.activity.SplashActivity",
211
+ "Function Description": "启动主界面",
212
+ "Parameter Information": "No additional parameters required."
213
+ },
214
+ {
215
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d amapuri://route/plan/?dname=<目的地> com.autonavi.minimap",
216
+ "Function Description": "搜索从当前位置到目的地位置的路线导航",
217
+ "Parameter Information": "替换 <目的地> 为您想搜索的位置的名称"
218
+ },
219
+ {
220
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d geo:纬度,经度?z=缩放级别&q=搜索关键词 com.autonavi.minimap",
221
+ "Function Description": "附近推荐搜索",
222
+ "Parameter Information": "替换 纬度 和 经度 为您当前位置的坐标。\n缩放级别 可以根据您的需求调整。\n搜索关键词 可以替换为您想搜索的内容,如“餐厅”、“咖啡馆”等"
223
+ },
224
+ {
225
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d geo:纬度,经度 com.autonavi.minimap/com.autonavi.map.activity.NewMapActivity",
226
+ "Function Description": "使用地理位置打开地图",
227
+ "Parameter Information": "替换 纬度 和 经度 为实际的坐标值。"
228
+ }
229
+ ],
230
+ "米家": [
231
+ {
232
+ "ADB Command": "adb shell am start -n com.xiaomi.smarthome/.SmartHomeMainActivity",
233
+ "Function Description": "启动主界面",
234
+ "Parameter Information": "No additional parameters required."
235
+ },
236
+ {
237
+ "ADB Command": "adb shell am start -n com.xiaomi.smarthome/.device.DeviceListActivity",
238
+ "Function Description": "启动设备列表",
239
+ "Parameter Information": "No additional parameters required."
240
+ },
241
+ {
242
+ "ADB Command": "adb shell am start -n com.xiaomi.smarthome/.device.control.DeviceControlActivity",
243
+ "Function Description": "打开设备控制界面",
244
+ "Parameter Information": "No additional parameters required."
245
+ },
246
+ {
247
+ "ADB Command": "adb shell am start -n com.xiaomi.smarthome/.smartscene.SmartSceneActivity",
248
+ "Function Description": "打开智能场景设置",
249
+ "Parameter Information": "No additional parameters required."
250
+ },
251
+ {
252
+ "ADB Command": "adb logcat | grep com.xiaomi.smarthome",
253
+ "Function Description": "查看设备日志",
254
+ "Parameter Information": "No additional parameters required."
255
+ }
256
+ ],
257
+ "小米商城": [
258
+ {
259
+ "ADB Command": "adb shell am start -n com.xiaomi.shop/.activity.MainTabActivity",
260
+ "Function Description": "启动主界面",
261
+ "Parameter Information": "No additional parameters required."
262
+ }
263
+ ],
264
+ "多看": [
265
+ {
266
+ "ADB Command": "adb shell am start -n com.duokan.reader/.DkReaderActivity",
267
+ "Function Description": "启动主界面",
268
+ "Parameter Information": "No additional parameters required."
269
+ },
270
+ {
271
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d <filepath> -t application/epub+zip com.duokan.reader/.DkReaderActivity",
272
+ "Function Description": "打开特定格式的文件",
273
+ "Parameter Information": "<filepath>替换为文件地址,例如file:///path/to/your/book.epub"
274
+ },
275
+ {
276
+ "ADB Command": "adb shell am start -a android.intent.action.SEARCH -n com.duokan.reader/.DkReaderActivity --es query \"<搜索关键词>\"",
277
+ "Function Description": "搜索小说",
278
+ "Parameter Information": "<搜索关键词>替换为实际的搜索词"
279
+ }
280
+ ],
281
+ "有道翻译官": [
282
+ {
283
+ "ADB Command": "adb shell am start -n com.youdao.translator/.MainActivity",
284
+ "Function Description": "启动主界面",
285
+ "Parameter Information": "No additional parameters required."
286
+ },
287
+ {
288
+ "ADB Command": "adb shell am start -n com.youdao.translator/com.youdao.yddocumenttranslate.activity.DocTransActivity",
289
+ "Function Description": "打开文档翻译活动",
290
+ "Parameter Information": "No additional parameters required."
291
+ },
292
+ {
293
+ "ADB Command": "adb shell am start -n com.youdao.translator/com.youdao.webtrans.WebTransActivity",
294
+ "Function Description": "打开网页翻译活动",
295
+ "Parameter Information": "No additional parameters required."
296
+ },
297
+ {
298
+ "ADB Command": "adb shell am start -a android.intent.action.SEND -t text/plain -e android.intent.extra.TEXT \"<翻译这段文本>\" com.youdao.translator",
299
+ "Function Description": "文本翻译",
300
+ "Parameter Information": "将<翻译这段文本>替换为你需要翻译的文本"
301
+ }
302
+ ],
303
+ "携程旅行": [
304
+ {
305
+ "ADB Command": "adb shell am start -n ctrip.android.view/ctrip.business.splash.CtripSplashActivity\n",
306
+ "Function Description": "启动携程主界面",
307
+ "Parameter Information": "No additional parameters required."
308
+ }
309
+ ],
310
+ "喜马拉雅": [
311
+ {
312
+ "ADB Command": "adb shell am start -n com.ximalaya.ting.android/.host.activity.MainActivity\n",
313
+ "Function Description": "启动喜马拉雅主界面",
314
+ "Parameter Information": "No additional parameters required."
315
+ },
316
+ {
317
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d file:///path/to/your/audio.mp3 -t audio/* com.ximalaya.ting.android/.host.activity.MainActivity",
318
+ "Function Description": "处理音频文件",
319
+ "Parameter Information": "替换 /path/to/your/audio.mp3 为音频文件路径。"
320
+ }
321
+ ],
322
+ "QQ": [
323
+ {
324
+ "ADB Command": "adb shell am start -n com.tencent.mobileqq/.activity.SplashActivity\n",
325
+ "Function Description": "启动 QQ 主界面",
326
+ "Parameter Information": "No additional parameters required."
327
+ },
328
+ {
329
+ "ADB Command": "adb shell am start -n com.tencent.mobileqq/.activity.ChatActivity --es uin \"联系人QQ号码\"\n",
330
+ "Function Description": "启动聊天界面",
331
+ "Parameter Information": "联系人QQ号码替换为具体的QQ号码"
332
+ },
333
+ {
334
+ "ADB Command": "adb shell am start -a android.intent.action.SEND -t text/plain -e android.intent.extra.TEXT \"要发送的文本\" com.tencent.mobileqq\n",
335
+ "Function Description": "建立发送文件意图,但并没指定联系人",
336
+ "Parameter Information": "将<要发送的文本>替换为具体文本"
337
+ }
338
+ ],
339
+ "拼多多": [
340
+ {
341
+ "ADB Command": "adb shell am start -n com.xunmeng.pinduoduo/.ui.activity.MainFrameActivity",
342
+ "Function Description": "启动拼多多主界面",
343
+ "Parameter Information": "No additional parameters required."
344
+ }
345
+ ],
346
+ "爱奇艺": [
347
+ {
348
+ "ADB Command": "adb shell am start -n com.qiyi.video/.WelcomeActivity",
349
+ "Function Description": "启动爱奇艺主界面",
350
+ "Parameter Information": "No additional parameters required."
351
+ },
352
+ {
353
+ "ADB Command": "adb shell am start -n com.qiyi.video/org.iqiyi.video.activity.PlayerActivity",
354
+ "Function Description": "打开爱奇艺播放器",
355
+ "Parameter Information": "No additional parameters required."
356
+ },
357
+ {
358
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d file:///path/to/your/video.mp4 -t video/mp4 com.qiyi.video/org.iqiyi.video.activity.PlayerActivity",
359
+ "Function Description": "播放本地存储的 MP4 文件",
360
+ "Parameter Information": "替换 /path/to/your/video.mp4 为视频文件路径"
361
+ },
362
+ {
363
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d http://[视频流URL] com.qiyi.video/org.iqiyi.video.activity.PlayerActivity",
364
+ "Function Description": "打开网络视频流",
365
+ "Parameter Information": "替换 视频流URL 为实际的视频流网址"
366
+ }
367
+ ],
368
+ "微博": [
369
+ {
370
+ "ADB Command": "adb shell am start -n com.sina.weibo/.SplashActivity\n",
371
+ "Function Description": "启动微博主界面",
372
+ "Parameter Information": "No additional parameters required."
373
+ },
374
+ {
375
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d sinaweibo://user?uid=用户UID com.sina.weibo\n",
376
+ "Function Description": "打开特定用户的微博页面",
377
+ "Parameter Information": "替换 用户UID 为实际用户的UID。"
378
+ },
379
+ {
380
+ "ADB Command": "adb shell am start -n com.sina.weibo/.MainTabActivity --es extra_show_tab \"MESSAGE\"\n",
381
+ "Function Description": "打开微博消息界面",
382
+ "Parameter Information": "No additional parameters required."
383
+ }
384
+ ],
385
+ "抖音": [
386
+ {
387
+ "ADB Command": "adb shell am start -n com.ss.android.ugc.aweme/.main.MainActivity\n",
388
+ "Function Description": "打开抖音到主界面",
389
+ "Parameter Information": "No additional parameters required."
390
+ },
391
+ {
392
+ "ADB Command": "adb shell am start -n com.ss.android.ugc.aweme/.share.OpenPlatformShareRealActivity\n",
393
+ "Function Description": "打开分享活动",
394
+ "Parameter Information": "No additional parameters required."
395
+ },
396
+ {
397
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -c android.intent.category.DEFAULT -d \"taobao://detail.aweme.sdk.com\"\n",
398
+ "Function Description": "处理淘宝链接",
399
+ "Parameter Information": "taobao://detail.aweme.sdk.com 替换为任何和淘宝相关的链接"
400
+ }
401
+ ],
402
+ "小米视频": [
403
+ {
404
+ "ADB Command": "adb shell am start -a android.intent.action.SEARCH -n com.miui.video/.feature.mine.setting.SettingActivity",
405
+ "Function Description": "此命令在小米视频应用内执行搜索操作",
406
+ "Parameter Information": "No additional parameters required."
407
+ },
408
+ {
409
+ "ADB Command": "adb shell am start -n com.miui.video/.Launcher1",
410
+ "Function Description": "启动小米视频主界面",
411
+ "Parameter Information": "No additional parameters required."
412
+ },
413
+ {
414
+ "ADB Command": "adb shell am start -n com.miui.video/.localvideoplayer.LocalPlayerActivity -a duokan.intent.action.VIDEO_PLAY -d content://path/to/video",
415
+ "Function Description": "播放本地视频文件",
416
+ "Parameter Information": "//path/to/video 替换为本地视频文件的路径"
417
+ }
418
+ ],
419
+ "小米有品": [
420
+ {
421
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.xiaomi.youpin/.activity.SplashActivity -d \"youpin://\"",
422
+ "Function Description": "打开小米有品的主界面",
423
+ "Parameter Information": "No additional parameters required."
424
+ },
425
+ {
426
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.xiaomi.youpin/.activity.SplashActivity -d \"http://app.youpin.mi.com\"",
427
+ "Function Description": "在小米有品应用内打开指定的HTTP链接",
428
+ "Parameter Information": "将http://app.youpin.mi.com替换为目标页面的链接"
429
+ }
430
+ ],
431
+ "今日头条": [
432
+ {
433
+ "ADB Command": "adb shell am start -n com.ss.android.article.news/.activity.MainActivity\n",
434
+ "Function Description": "今日头条打开主界面",
435
+ "Parameter Information": "无参数要求"
436
+ },
437
+ {
438
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.ss.android.article.news/com.bytedance.news.schema.AdsAppActivity -d \"snssdk141://特定内容\"",
439
+ "Function Description": "此命令用于打开头条新闻应用并查看特定Scheme的内容",
440
+ "Parameter Information": "将特定内容换为你感兴趣的主题"
441
+ },
442
+ {
443
+ "ADB Command": "adb shell am start -a android.intent.action.SEND -n com.ss.android.article.news/com.bytedance.ug.diversion.DyNewSearchActivity",
444
+ "Function Description": "进入搜索页面",
445
+ "Parameter Information": "No additional parameters required."
446
+ }
447
+ ],
448
+ "应用商店": [
449
+ {
450
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.xiaomi.market/.ui.MarketTabActivity -d \"mimarket://home\"",
451
+ "Function Description": "打开应用商城主界面",
452
+ "Parameter Information": "No additional parameters required."
453
+ },
454
+ {
455
+ "ADB Command": "adb shell am start -a android.intent.action.SEARCH -n com.xiaomi.market/.ui.MarketPreferenceActivity",
456
+ "Function Description": "打开应用商店设置页面",
457
+ "Parameter Information": "No additional parameters required."
458
+ },
459
+ {
460
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.xiaomi.market/.ui.JoinActivity -d \"mimarket://search\"",
461
+ "Function Description": "打开商城搜索页面",
462
+ "Parameter Information": "No additional parameters required."
463
+ },
464
+ {
465
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.xiaomi.market/.business_ui.useragreement.basicmode.BasicModeAgreementActivity -d \"mimarket://agreement/basicmode\"",
466
+ "Function Description": "进入商城模式选择页面",
467
+ "Parameter Information": "No additional parameters required."
468
+ }
469
+ ],
470
+ "大众点评": [
471
+ {
472
+ "ADB Command": "adb shell am start -n com.dianping.v1/.NovaMainActivity -d \"dianping://home\"",
473
+ "Function Description": "大众点评打开主界面",
474
+ "Parameter Information": "No additional parameters required."
475
+ },
476
+ {
477
+ "ADB Command": "adb shell am start -n com.dianping.v1/.NovaMainActivity -d \"dianping://me\"",
478
+ "Function Description": "打开个人中心页面",
479
+ "Parameter Information": "No additional parameters required."
480
+ },
481
+ {
482
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.dianping.v1/com.meituan.android.trafficayers.webview.TrafficKNBWebViewActivity -d \"dianping://www.dianping.com\"",
483
+ "Function Description": "此命令尝试在大众点评应用内打开一个特定的网页。",
484
+ "Parameter Information": "替换dianping://www.dianping.com,为要打开的目标网页"
485
+ }
486
+ ],
487
+ "去哪儿旅行": [
488
+ {
489
+ "ADB Command": "adb shell monkey -p com.Qunar -c android.intent.category.LAUNCHER 1",
490
+ "Function Description": "启动去哪儿旅行到主界面",
491
+ "Parameter Information": "No additional parameters required."
492
+ }
493
+ ],
494
+ "照片": [
495
+ {
496
+ "ADB Command": "adb shell am start -n com.miui.gallery/.activity.HomePageActivity",
497
+ "Function Description": "启动小米相册应用的主界面",
498
+ "Parameter Information": "No additional parameters required."
499
+ },
500
+ {
501
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -d [file_uri] -t [mime_type] com.miui.gallery",
502
+ "Function Description": "查看相册中的特定图片或视频",
503
+ "Parameter Information": "替换[file_uri]为图片或视频的文件URI,替换[mime_type]为相应的MIME类型,如image/jpeg或video/mp4。"
504
+ },
505
+ {
506
+ "ADB Command": "adb push /path/to/your/image.jpg /sdcard/DCIM/Camera/\n",
507
+ "Function Description": "导入照片到默认相册",
508
+ "Parameter Information": "/path/to/your/image.jpg /sdcard/DCIM/Camera/ 分别为源和目标路径"
509
+ },
510
+ {
511
+ "ADB Command": "adb pull /sdcard/DCIM/Camera/your_image.jpg /path/to/destination/\n",
512
+ "Function Description": "导出照片到设备",
513
+ "Parameter Information": "/sdcard/DCIM/Camera/your_image.jpg 替换为照片路径 /path/to/destination/ 为目标路径"
514
+ }
515
+ ],
516
+ "短信": [
517
+ {
518
+ "ADB Command": "adb shell am start -n com.android.mms/.ui.MmsTabActivity\n",
519
+ "Function Description": "短信打开主界面",
520
+ "Parameter Information": "无额外参数要求"
521
+ },
522
+ {
523
+ "ADB Command": "adb shell am start -a android.intent.action.SEND -n com.android.mms/.ui.ComposeMessageRouterActivity --es sms_body \"消息内容\"",
524
+ "Function Description": "此命令仅用于发送纯文本消息",
525
+ "Parameter Information": "消息内容 替换为要发送的消息内容"
526
+ },
527
+ {
528
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.android.mms/.ui.ComposeMessageRouterActivity -d \"sms://\" --es address \"电话号码\"",
529
+ "Function Description": "此命令用于查看或发送SMS消息",
530
+ "Parameter Information": "No additional parameters required."
531
+ },
532
+ {
533
+ "ADB Command": "adb shell am start -a miui.intent.action.APP_SETTINGS -n com.android.mms/.ui.MessagingPreferenceActivity",
534
+ "Function Description": "此命令打开短信应用的设置界面",
535
+ "Parameter Information": "No additional parameters required."
536
+ },
537
+ {
538
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.android.mms/.ui.ManageSimMessages",
539
+ "Function Description": "此命令用于管理SIM卡上的短信",
540
+ "Parameter Information": "No additional parameters required."
541
+ }
542
+ ],
543
+ "联系人": [
544
+ {
545
+ "ADB Command": "adb shell am start -n com.android.contacts/.activities.PeopleActivity\n",
546
+ "Function Description": "联系人打开到主界面",
547
+ "Parameter Information": "No additional parameters required."
548
+ },
549
+ {
550
+ "ADB Command": "adb shell am start -a android.intent.action.INSERT -n com.android.contacts/.activities.ContactEditorActivity",
551
+ "Function Description": "此命令用于插入新的联系人",
552
+ "Parameter Information": "No additional parameters required."
553
+ },
554
+ {
555
+ "ADB Command": "adb shell am start -a android.intent.action.DIAL -n com.android.contacts/.activities.TwelveKeyDialer",
556
+ "Function Description": "此命令用于拨打电话号码",
557
+ "Parameter Information": "No additional parameters required."
558
+ },
559
+ {
560
+ "ADB Command": "adb shell am start -a android.intent.action.GET_CONTENT -n com.android.contacts/.activities.ContactPhonePickerActivity --ei type 1",
561
+ "Function Description": "此命令用于获取联系人的内容",
562
+ "Parameter Information": "No additional parameters required."
563
+ },
564
+ {
565
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.android.contacts/.activities.NonPhoneActivity",
566
+ "Function Description": "此命令用于查看电话记录",
567
+ "Parameter Information": "No additional parameters required."
568
+ }
569
+ ],
570
+ "笔记": [
571
+ {
572
+ "ADB Command": "adb shell am start -a com.miui.todo.shortcut.action.INSERT_OR_EDIT -n com.miui.notes/.ui.NotesListActivity",
573
+ "Function Description": "此命令用于添加或编辑文本或音频便签",
574
+ "Parameter Information": "No additional parameters required."
575
+ },
576
+ {
577
+ "ADB Command": "adb shell am start -a android.intent.action.INSERT_OR_EDIT -n com.miui.notes/.ui.activity.CreateDoodleNoteBridgeActivity",
578
+ "Function Description": "此命令用于创建涂鸦类型的便签",
579
+ "Parameter Information": "No additional parameters required."
580
+ },
581
+ {
582
+ "ADB Command": "adb shell am start -a android.intent.action.VIEW -n com.miui.notes/.ui.NotesListActivity",
583
+ "Function Description": "此命令用于查看文本或电话便签",
584
+ "Parameter Information": "No additional parameters required."
585
+ }
586
+ ],
587
+ "主题壁纸": [
588
+ {
589
+ "ADB Command": "adb shell am start -n com.android.thememanager/.ThemeResourceProxyTabActivity",
590
+ "Function Description": "打开主界面",
591
+ "Parameter Information": "No additional parameters required."
592
+ },
593
+ {
594
+ "ADB Command": "adb shell am start -n com.android.thememanager/.search.ThemeSearchActivity",
595
+ "Function Description": "打开搜索页面",
596
+ "Parameter Information": "No additional parameters required."
597
+ }
598
+ ],
599
+ "游戏中心": [
600
+ {
601
+ "ADB Command": "adb shell am start -n com.xiaomi.gamecenter/.ui.MainTabActivity",
602
+ "Function Description": "打开游戏中心到主界面",
603
+ "Parameter Information": "No additional parameters required."
604
+ },
605
+ {
606
+ "ADB Command": "adb shell am start -n com.xiaomi.gamecenter/.ui.MainTabActivity -a android.shortcuts.mainactivity.welfare",
607
+ "Function Description": "打开游戏中心到福利页面",
608
+ "Parameter Information": "No additional parameters required."
609
+ },
610
+ {
611
+ "ADB Command": "adb shell am start -n com.xiaomi.gamecenter/.ui.search.newsearch.NewSearchActivity",
612
+ "Function Description": "打开游戏中心到搜索页面",
613
+ "Parameter Information": "No additional parameters required."
614
+ },
615
+ {
616
+ "ADB Command": "adb shell am start -n com.xiaomi.gamecenter/.ui.MainTabActivity -a android.shortcuts.mainactivity.mine",
617
+ "Function Description": "打开游戏中心到我的个人页面",
618
+ "Parameter Information": "No additional parameters required."
619
+ },
620
+ {
621
+ "ADB Command": "adb shell am start -n com.xiaomi.gamecenter/.ui.explore.activity.ExploreTypeGameListActivity",
622
+ "Function Description": "打开游戏中心到动态页面",
623
+ "Parameter Information": "No additional parameters required."
624
+ }
625
+ ]
626
+ }
agent_for_ui/agent_for_api/api_test.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dd8208c24f829b22c9035cd0ea4bc864965b74f20fb23111fd1d887d4b77beb
3
+ size 1482742
agent_for_ui/agent_for_api/api_test/1_ndk_reference.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/ndk/reference"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_activity_result_contract_ActivityResultContracts.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/activity/result/contract/ActivityResultContracts"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_AnimatorRes.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/annotation/AnimatorRes"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_LayoutRes.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/annotation/LayoutRes"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_StyleableRes.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/annotation/StyleableRes"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_annotation_experimental_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/annotation/experimental/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_appsearch_annotation_Document_Namespace.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/appsearch/annotation/Document.Namespace"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_arch_core_util_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/arch/core/util/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_autofill_inline_SuggestionHintConstants.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/autofill/inline/SuggestionHintConstants"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ExperimentalBenchmarkConfigApi.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/benchmark/ExperimentalBenchmarkConfigApi"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ExperimentalBenchmarkStateApi.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/benchmark/ExperimentalBenchmarkStateApi"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_benchmark_ProfilerConfig_StackSampling.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/benchmark/ProfilerConfig.StackSampling"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_biometric_auth_AuthPromptFailureException.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/biometric/auth/AuthPromptFailureException"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_extensions_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/camera/extensions/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_video_VideoRecordEvent_Start.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/camera/video/VideoRecordEvent.Start"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_view_transform_OutputTransform.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/camera/view/transform/OutputTransform"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_camera_view_video_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/camera/view/video/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_classes.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/constraintlayout/classes"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_core_motion_utils_TimeCycleSplineSet_Sort.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/constraintlayout/core/motion/utils/TimeCycleSplineSet.Sort"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_helper_widget_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/constraintlayout/helper/widget/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_constraintlayout_packages.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/constraintlayout/packages"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_graphics_drawable_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/graphics/drawable/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_location_altitude_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/location/altitude/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_net_ParseException.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/net/ParseException"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_os_OperationCanceledException.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/os/OperationCanceledException"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_performance_testing_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/performance/testing/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_role_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/role/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_service_quicksettings_package-summary.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/service/quicksettings/package-summary"
3
+ }
agent_for_ui/agent_for_api/api_test/1_reference_androidx_core_telecom_CallControlResult.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "baseurl": "https://developer.android.google.cn/reference/androidx/core/telecom/CallControlResult"
3
+ }