+ 1

How to get android clipboard content in python

I’m writing a project on python, but my code doesn’t get the android clipboard content. But gets for windows. How can i make my code get the clipboard data/content of android?

9th Sep 2022, 10:32 PM
Onaga Ebubechukwu
Onaga Ebubechukwu - avatar
2 odpowiedzi
+ 1
Solve this by using kivy (Kivy 2.0 only supports Python 2.7 to 3.9 at the moment, so make sure your Python version is compatible. Read more about installing kivy here: Installing Kivy). There is module for this, called Clipboard, and it can paste text from the users Clipboard. #:import Clipboard kivy.core.clipboard.Clipboard Button: on_release: self.text = Clipboard.paste() Clipboard.copy('Data')
10th Sep 2022, 4:31 AM
Collins Elijah
Collins Elijah - avatar
0
I tried but wouldn’t work because kivy module/package is used for making andriod apps with python code.
10th Sep 2022, 9:03 AM
Onaga Ebubechukwu
Onaga Ebubechukwu - avatar