Working on Moving a B4A app to B4i.
I was using reflector to set the timezone in B4A:
Is there a better way to do this in B4i?
I was using reflector to set the timezone in B4A:
B4X:
Public Sub SetTimeZone(id As String)
Dim r As Reflector
' Dim r As NativeObject
Dim idTz As Object = r.RunStaticMethod("java.util.TimeZone", "getTimeZone", Array As String(id), _
Array As String("java.lang.String"))
r.RunStaticMethod("anywheresoftware.b4a.keywords.DateTime", "setTimeZoneInternal", _
Array As Object(idTz), Array As String("java.util.TimeZone"))
End Sub
Is there a better way to do this in B4i?