how to access all system service methods ?

8 views
Skip to first unread message

ynj...@gmail.com

unread,
Nov 7, 2014, 11:17:07 PM11/7/14
to pyjni...@googlegroups.com

using this code :

from jnius import autoclass as c

Context = c('org.renpy.android.PythonActivity')
activity = Context.mActivity

wm = activity.getSystemService(Context.WINDOW_SERVICE)
print wm

print dir(wm)


I only got 15 methods of window service, while dir(wm.getDefault()) gives even less methods.

How can I access all (60+) of its methods listed in the .aidl file ?

https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/­android/view/IWindowManager.aidl


Did I use wrong context ? Is it matter ?

Thanks :D

Screenshot_2014-11-08-11-09-10.png
Reply all
Reply to author
Forward
0 new messages