M Marion Opperman Member Licensed User Longtime User Jul 29, 2015 #1 Hi There, Could someone please help me with getting a field using reflection. i would like to do something like this: l = r.GetField("SystemClock.elapsedRealtime()") Thanks
Hi There, Could someone please help me with getting a field using reflection. i would like to do something like this: l = r.GetField("SystemClock.elapsedRealtime()") Thanks
LucaMs Expert Licensed User Longtime User Jul 29, 2015 #2 I'm a "not expert" of reflection. Try so and tell me if it works B4X: Sub GetElapsedRealtime As Long Dim r As Reflector Return r.RunStaticMethod("android.os.SystemClock", "elapsedRealtime", Null, Null) End Sub Upvote 0
I'm a "not expert" of reflection. Try so and tell me if it works B4X: Sub GetElapsedRealtime As Long Dim r As Reflector Return r.RunStaticMethod("android.os.SystemClock", "elapsedRealtime", Null, Null) End Sub
M Marion Opperman Member Licensed User Longtime User Jul 29, 2015 #3 It Works. Thanks a lot. Upvote 0