notes.txt                  2025-02-15
python_on_android

ScrCpy (for larger screen)
==========================
1. Remote control through USB
   scrcpy available for Linux, Mac and Windows
   URL: https://github.com/Genymobile/scrcpy
2. on Android: enable USB debugging
   see: https://developer.android.com/studio/debug/dev-options#enable
   on Samsung: Settings | About phone | Software information | Build number | tap 7..10 times
               Settings | Developer options | USB debugging = On
3. Start scrcpy


File transfer (remote storage)
==============================
1. Filer with SSH and SFTP capabilities
   Play store:
      install: Total commander
               SFTP plugin for total commander
2. Connect Android to Wifi network
   for SFTP file transfer
3. Linux SSH server
   ================
   # zypper in openssh  (on openSUSE installed by default)
   $ systemctl start ssh
   $ systemctl enable ssh
4. Windows 10 SSH server
   =====================
   Settings | App | Apps & Features | Optional Features | Add a Feature
      openSSH server = check | Next | Add |
   Find | Services | openSSH server | Running & setup type = Automatic
5. Windows 11 SSH server
   =====================
   Settings | System | Optional Features | View features
      openSSH server = check | Next | Add |
   Find | Services | openSSH server | Running & setup type = Automatic
6. Connect Android to same network as SSH server
   Start Total commander
   SFTP | New connection | Name = xxxx | OK
      server name = 192.168.x.x
      user name   = xxx
      password    = xxx | OK
      passwd      = xxx | ok


External keyboard (more real estate)
====================================
1. BT or ScrCpy


Split screen (multi tasking)
============================
1. https://www.lifewire.com/use-split-screen-android-7111685


Font size (max usability)
=========================
Settings | Search = Font | Font size and style | Font size and style
and / or in App


Python interpreters (Pydroid3, QPython, Termux)
===============================================

Pydroid 3
=========
1. Play Store | Search Pydroid 3 | Install
2. Run Pydroid 3 | Preserve text on exit & Tab insert spaces
3. see: console | terminal | editor
4. copy - paste pythagoras.py
5. see: pip | libraries
   Pip | Quick install | PySide6 | Install
   Samples | Pyside6 + QtPy | QtPy Hello World | Open
6. for QtPy: https://pypi.org/project/QtPy/
   from qtpy import QtWidgets, QtCore
   ==
   from    PySide6    import    QtWidgets
   from    PySide6    import    QtCore
7. Conclusion:
   Great for learning
   No desktop launchers (shortcuts)
   Demo Qt en TkInter projecten werken goed
   Bad luck with importing my Qt and TkInter projects


QPython
=======
1. Play Store | Search QPython from QPythonLab | Install
2. Run QPython in portrait mode | Accept | OK
3. explore GUI
4. copy - paste pythagoras.py
5. Supports Kivy for GUI
   QPYPI | Pip client | --> pip install kivy
   -->  build dependency error: ANDROID_APP_PATH
6. WebApp: ??


Termux
======
1. Play Store | Search Termux | Install
2. run Termux
   $ pkg install mc
   $ pkg install python
   remark: TkInter is possible if installing X11
3. $ termux-setup-storage  Termux enable
   see: ~/storage/shared/

