2

I have a decent hold on Python, but completely new to developing android applications. Hence, I thought of using Kivy, as I do know Python.

I wish to create an application that includes a button, and on clicking the button, the user is redirected to a specific application(maybe Messages, or YouTube, etc.)

As I'm currently coding on my pc, I figured out how to redirect the user to a specific website by clicking a button, but I'm clueless when it comes to the above problem.

Any help with this regard would be highly appreciated!!

troy
  • 2,145
  • 2
  • 23
  • 31

1 Answers1

0

On a Windows box you can do:

if sys.platform.startswith('win'):
            command = 'explorer "' + file_name + '"'
            p = subprocess.Popen(command)

This will allow windows to handle opening a file correctly.

You can also use Popen on Linux systems, but I think you will have to determine the specific app that you waant to open.

John Anderson
  • 35,991
  • 4
  • 13
  • 36