Hi all ,
I am trying to make an application that listen to clipboard changes but do not know how exactly to do it .
I think B4A does not have any built-in function or way to do so .
So I am trying to get ClipboardManager as I read that it has listening ability .
This is one of my many attempts
Dim myClipboard As JavaObject
myClipboard.InitializeStatic("android.content.Context")
myClipboard.RunMethod("getSystemService",Array As String("CLIPBOARD_SERVICE"))
This code raises the error
java.lang.IllegalArgumentException: expected receiver of type android.content.Context, but got java.lang.Class<android.content.Context>
Please help me I am still novice especially in Java and Android APIs and if there is some intent for clipboard that would be better
Thanks in advance