Android Question Simple question about getResources

wimpie3

Well-Known Member
Licensed User
Longtime User
I'm trying to get to get this Java value
B4X:
int height = (int) res.getDimension(android.R.dimen.notification_large_icon_height);
in B4A.

I've tried with
B4X:
    Dim r As Reflector
    r.Target = r.GetContext
    r.Target = r.RunMethod("getResources")
    r.Target = r.RunMethod("getDimension")
    Log(r.GetField("notification_large_icon_height"))

But I get the error that "getDimension" is not unknown. I'm doing something wrong, but what?
 
Top