Android Update Checker Script for Pydroid 3
Generiert ein kompaktes Python-Update-Dashboard mit Fortschrittsanzeige speziell für Pydroid 3 auf Android.
Generiert ein kompaktes Python-Update-Dashboard mit Fortschrittsanzeige speziell für Pydroid 3 auf Android.
Der Prompt
Act as a professional Python coder. You are one of the best in your industry and currently freelancing. Your task is to create a Python script that works on an Android phone using Pydroid 3.
Your script should:
- Provide a menu with options for checking updates: system updates, security updates, Google Play updates, etc.
- Allow the user to check for updates on all options or a selected one.
- Display updates available, let the user choose to update, and show a progress bar with details such as update size, download speed, and estimated time remaining.
- Use colorful designs related to each type of update.
- Keep the code under 300 lines in a single file called `app.py`.
- Include comments for clarity.
Here is a simplified version of how you might structure this script:
```python
# Import necessary modules
import os
import time
from some_gui_library import Menu, ProgressBar
# Define update functions
def check_system_update():
# Implement system update checking logic
pass
def check_security_update():
# Implement security update checking logic
pass
def check_google_play_update():
# Implement Google Play update checking logic
pass
# Main function to display menu and handle user input
def main():
menu = Menu()
menu.add_option('Check System Updates', check_system_update)
menu.add_option('Check Security Updates', check_security_update)
menu.add_option('Check Google Play Updates', check_google_play_update)
menu.add_option('Check All Updates', lambda: [check_system_update(), check_security_update(), check_google_play_update()])
while True:
choice = menu.show()
if choice is None:
break
else:
choice()
# Display progress bar and update information
progress_bar = ProgressBar()
progress_bar.start()
# Run the main function
if __name__ == '__main__':
main()
Note: This script is a template and requires the implementation of actual update checking and GUI handling logic. Customize it with actual libraries and methods suitable for Pydroid 3 and your specific needs.
## So nutzt du es
Den Prompt-Text kopieren (Button oben) und als System-Prompt bzw. erste Nachricht in ChatGPT, Claude oder einem lokalen Modell einfügen. In ChatGPT lässt er sich unter „Anweisungen für ChatGPT" dauerhaft hinterlegen.
Der Prompt-Text ist englisch — er funktioniert trotzdem in deutschen Unterhaltungen. Für deutsche Antworten einfach am Ende ergänzen: „Antworte auf Deutsch."
## Im Detail
Erzeugt ein einzelnes, unter 300 Zeilen langes Python-Skript (app.py), das speziell für Pydroid 3 auf Android gedacht ist: ein Menü zum Prüfen von System-, Sicherheits- und Google-Play-Updates, mit Fortschrittsbalken (Größe, Downloadgeschwindigkeit, verbleibende Zeit) und farblich abgesetzter Darstellung je Update-Typ. Praktisch für alle, die auf dem Handy in Pydroid 3 experimentieren und ein handliches Update-Dashboard ohne separate App bauen wollen. Die Zeilenbegrenzung und Kommentarpflicht im Prompt sorgen dafür, dass der Code überschaubar und für Einsteiger nachvollziehbar bleibt statt in ein Over-Engineering-Projekt auszuufern.
## Praxis-Tipp
Vorgabe „unter 300 Zeilen, eine Datei app.py“ im Prompt lassen – das verhindert, dass Claude ein Mehrdatei-Projekt vorschlägt, das in Pydroid 3 unpraktisch wäre.
## Siehe auch
- [Any Programming Language to Python Converter](/ki-verzeichnis/openai-chatgpt/any-programming-language-to-python-converter/)
## Lizenz & Quelle
- **Lizenz:** CC0-1.0 (Public Domain)
- **Quelle:** [awesome-chatgpt-prompts (GitHub)](https://github.com/f/awesome-chatgpt-prompts)
Inhalt ansehen (android-update-checker-script-for-pydroid-3.txt)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Prompt bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
aa/cli taste
Legt feste Tech- und Stilvorgaben für CLI-Projekte fest (pnpm, TypeScript, Commander.js, Ordnerstruktur).
Accessibility Auditor
Lässt ChatGPT als Accessibility-Experte eine Website auf WCAG-2.2- und Section-508-Konformität prüfen.
Analyze code scanning security issues and dependency updates if vulnerable
Priorisiert GHAS-Sicherheitsalerts über Repos hinweg und trennt Dependency- von Base-Image-Ursachen.
