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

  • From: Alissar Abdulbaqi <alissar570@xxxxxxxxx>
  • To: program-l@xxxxxxxxxxxxx
  • Date: Mon, 12 Apr 2021 14:42:59 +0300

This is the runtime error message:

Runtime error: Invalid method call. Invalid Parameters.
public void com.nirenr.talkman.TalkManAccessibilityService.toLongClick()
public void 
com.nirenr.talkman.TalkManAccessibilityService.toLongClick(android.view.accessibility.AccessibilityNodeInfo)
public void com.nirenr.talkman.TalkManAccessibilityService.toLongClick()
public void 
com.nirenr.talkman.TalkManAccessibilityService.toLongClick(android.view.accessibility.AccessibilityNodeInfo)

stack traceback:
 [C]: in field 'toLongClick'
 /storage/emulated/0/解说/Gestures/Custom/mute:1: in main chunk


On 4/12/21, Alissar Abdulbaqi <alissar570@xxxxxxxxx> wrote:

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

Other related posts: