[program-l] Re: help in fixing A runtime error in my function

  • From: <jordyydeweer@xxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Mon, 12 Apr 2021 14:32:02 +0200

You cannot pass a string as the method's argument. It assumes nothing or an 
object of the type android.view.accessibility.AccessibilityNodeInfo .

Hope that helps
Met vriendelijke groeten | Your sincerely | Salutations
Jordy Deweer

info@xxxxxxxxxxxxx
+32 50 96 03 32

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On Behalf 
Of Alissar Abdulbaqi
Sent: Monday, April 12, 2021 1:37 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] help in fixing A runtime error in my function

Hello. I'm facing a problem in a function for Commentary Screen Reader:
There is a function for long pressing an item on the screen which is:
service.toLongClick()

I want to create this function to make it long press the focused item and stays 
on a button without accessing it.
My function is:

if service.toLongClick("<Mute")
return true
end

But while executing it, I receive an error message of "runtime error".
What's the error in writing the function?
Thanks for any help
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: