peacemaker Expert Licensed User Longtime User Dec 28, 2016 #1 Hi, All Is it possible ? BClipboard object of the known lib is the Activity object.
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2016 #2 I'm not sure why it needs to be an activity object. Try to change the owner in the xml file to process. Upvote 0
I'm not sure why it needs to be an activity object. Try to change the owner in the xml file to process.
peacemaker Expert Licensed User Longtime User Dec 28, 2016 #3 Yes, Erel, thanks. After change it's OK for the service as Process object. Spoiler: Clipboard.xml B4X: <?xml version="1.0" encoding="UTF-8"?> -<root> <doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version> -<class> <name>b4a.util.BClipboard</name> <shortname>BClipboard</shortname> <owner>process</owner> -<method> <name>getText</name> <comment/> <returntype>java.lang.String</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> -<method> <name>clrText</name> <comment/> <returntype>void</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> -<method> <name>setText</name> <comment/> <returntype>void</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> -<parameter> <name>text</name> <type>java.lang.String</type> </parameter> </method> -<method> <name>hasText</name> <comment/> <returntype>boolean</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> </class> </root> Upvote 0
Yes, Erel, thanks. After change it's OK for the service as Process object. Spoiler: Clipboard.xml B4X: <?xml version="1.0" encoding="UTF-8"?> -<root> <doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version> -<class> <name>b4a.util.BClipboard</name> <shortname>BClipboard</shortname> <owner>process</owner> -<method> <name>getText</name> <comment/> <returntype>java.lang.String</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> -<method> <name>clrText</name> <comment/> <returntype>void</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> -<method> <name>setText</name> <comment/> <returntype>void</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> -<parameter> <name>text</name> <type>java.lang.String</type> </parameter> </method> -<method> <name>hasText</name> <comment/> <returntype>boolean</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> </class> </root>
K Kadandale Ganapathy Bhat Member Licensed User Sep 4, 2020 #4 Dear I follow your instruction, but when device is in sleep mode text cann't be pasted to clipboard. please help me Upvote 0
Dear I follow your instruction, but when device is in sleep mode text cann't be pasted to clipboard. please help me
peacemaker Expert Licensed User Longtime User Sep 4, 2020 #5 "Sleep" means stop working and relax (just a joke) Upvote 0
K Kadandale Ganapathy Bhat Member Licensed User Sep 4, 2020 #6 Sorry, I am not joking. I want help in my alarm project to transfer some text to tts app. Thank you Upvote 0
peacemaker Expert Licensed User Longtime User Sep 4, 2020 #7 But, seems, it's clear, if your app must work - you must prevent it of sleeping. By PhoneWakeState from Phone, and Foreground service. BUt it's offtopic discussion here, make a new topic. Upvote 0
But, seems, it's clear, if your app must work - you must prevent it of sleeping. By PhoneWakeState from Phone, and Foreground service. BUt it's offtopic discussion here, make a new topic.
K Kadandale Ganapathy Bhat Member Licensed User Sep 4, 2020 #8 but alarm ringing works even in sleep mode by timer setting. but copy to clipboard doesn't work even after timer setting. Upvote 0
but alarm ringing works even in sleep mode by timer setting. but copy to clipboard doesn't work even after timer setting.