Android Question jo.InitializeStatic ("com.sun.glass.ui.Application") --- problem

berndm2

Member
Licensed User
Longtime User
I'm trying to input using
"Com.sun.glass.ui.Application"
to generate and get at initialization:

Dim jo As JavaObject
jo.InitializeStatic ("com.sun.glass.ui.Application")

the error message: "java.lang.ClassNotFoundExeption"

Where can I get this class?
What am I doing wrong?
Thank you
 

DonManfred

Expert
Licensed User
Longtime User
com.sun.glass.ui.Application
What is com.sun.glass.ui.Application? :D

More interesting: What exactly are you trying to archieve?
 
Last edited:
Upvote 1

berndm2

Member
Licensed User
Longtime User
Member: ThRuST had posted the following program lines Jan5 2019 under the title: Simulate keypress + combos: that I wanted to test.
Dim robot As JavaObject
Dim jo As JavaObject
jo.InitializeStatic("com.sun.glass.ui.Application")
robot = jo.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)

Dim i As Int = 65

robot.RunMethod("keyPress", Array As Object(i))
Sleep(50)
robot.RunMethod("keyRelease", Array As Object(i))
 
Upvote 0

berndm2

Member
Licensed User
Longtime User
Ok I understand. Is there another possibility in b4a to send keystrokes to other applications when the main is paused in the background.
 
Upvote 0
Top