Android Question JavaObject to Reflector

Star-Dust

Expert
Licensed User
Longtime User
I tried to transform a code that uses the JavaObject Library into Reflector. So do not use too many Libraries in my code .. but without result ...

B4X:
Dim jo As JavaObject = SearchButton.Background
jo.RunMethod("setColorFilter", Array As Object(ColorSearchButton, "SRC_OUT"))

This don't work :confused:
B4X:
Dim Re As Reflector
Re.Target=SearchButton.Background
Re.RunPublicmethod("setColorFilter",Array As Object(ColorSearchButton, "SRC_OUT"),Array As String("java.lang.int", "java.lang.String"))
 

Star-Dust

Expert
Licensed User
Longtime User
Does anyone have an idea?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0
Top