I am trying to get used to Reflection.
1) This is an experimental program that gets a "java.lang.ClassNotFoundException". Can someone point out my mistake.
2) The wiki for Reflection has the following statement appearing in several places:
1) This is an experimental program that gets a "java.lang.ClassNotFoundException". Can someone point out my mistake.
B4X:
Dim r As Reflector
Dim args(1) As Object
args(0) = 5000
Dim Types(2) As String
Types(0) = "java.lang.long"
r.RunStaticMethod("SystemClock", "sleep", args, Types)
2) The wiki for Reflection has the following statement appearing in several places:
I am curious what security manager would allow access to private methods. Is this a hint that there is an undocumented "AllowRunPrivateMethod" function in Reflection ?Protected and private methods may be accessed if allowed by any security manager which may be present.