-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathandroid.repy
56 lines (37 loc) · 989 Bytes
/
android.repy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""
<Program>
android.repy
Methods are mostly from:
http://www.mithril.com.au/android/doc/AndroidFacade.html
<Date Started>
December 18th, 2013
<Author>
Yanyan Zhuang
<Purpose>
Trying to use the SL4A JSON bridge to read Android info
"""
# All Android methods that don't require parameters
android_method_list_no_para = ["environment", "getIntent"]
# All Android methods that require parameters,
# including optional parameters
android_method_list = ["makeToast", "vibrate"]
def android_get_method_list_no_para():
"""
<Purpose>
Get all the methods that don't require parameters.
<Arguments>
None
<Return>
Returns all the methods that don't require parameters.
"""
return android_method_list_no_para
def android_get_method_list():
"""
<Purpose>
Get all the methods.
<Arguments>
None
<Return>
Returns all the methods.
"""
return android_method_list_no_para + android_method_list