Skip to main content
Prompts Pydroid3 Android Updates Checker Script

developer coding user risk: low

Pydroid3 Android Updates Checker Script

Instructs the model to act as a professional Python coder and create a single-file Python script (app.py, under 300 lines) for Pydroid 3 on Android, featuring a menu to check syste…

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.

ROLES & RULES

Role assignments

  • Act as a professional Python coder.
  • You are one of the best in your industry and currently freelancing.
  1. Provide a menu with options for checking updates: system updates, security updates, Google Play updates, etc.
  2. Allow the user to check for updates on all options or a selected one.
  3. 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.
  4. Use colorful designs related to each type of update.
  5. Keep the code under 300 lines in a single file called `app.py`.
  6. Include comments for clarity.

EXPECTED OUTPUT

Format
code
Constraints
  • under 300 lines
  • single file app.py
  • include comments
  • colorful designs
  • suitable for Pydroid 3

SUCCESS CRITERIA

  • Implement menu for various update checks
  • Handle individual or all updates
  • Display available updates and allow selection
  • Show progress bar with size, speed, and ETA
  • Apply colorful designs to update types
  • Ensure code is under 300 lines with comments

FAILURE MODES

  • Using libraries incompatible with Pydroid 3
  • Failing to simulate realistic update checking
  • Exceeding 300 line limit
  • Omitting progress bar details or colors
  • Not providing a single app.py file

EXAMPLES

Includes one simplified template Python script with placeholder functions, menu structure, and main function.

CAVEATS

Missing context
  • Compatible GUI libraries for Pydroid 3 (e.g., Kivy, console-based like Rich).
  • Feasibility of real update checking on Android via Python (likely needs simulation).
  • Android version, permissions, or root access requirements.
  • Exact menu options beyond the three listed (e.g., 'etc.' in prompt).
Ambiguities
  • Unspecified GUI library; template uses fictional 'some_gui_library'.
  • No details on how to implement actual update checking logic (e.g., real APIs or simulation).
  • 'Colorful designs related to each type of update' is vague and undefined.
  • Progress bar details like 'update size, download speed, estimated time remaining' unclear if real or simulated.

QUALITY

OVERALL
0.65
CLARITY
0.85
SPECIFICITY
0.75
REUSABILITY
0.20
COMPLETENESS
0.65

IMPROVEMENT SUGGESTIONS

  • Specify a real GUI library for Pydroid 3, e.g., 'Use Kivy or console-based Rich library for menu and progress bar.'
  • Explicitly state to simulate update checking and progress bars since real implementation is complex/impossible without root.
  • Define 'colorful designs', e.g., 'Use ANSI colors or emojis for each update type in the menu.'
  • Remove or increase the 300-line limit to allow proper implementation.
  • Add success criteria, e.g., 'Script must run without errors in Pydroid 3 and demo all features.'

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER