A
A
Alexander2018-07-02 19:43:57
Android
Alexander, 2018-07-02 19:43:57

How to run QPython and pass a script as a parameter?

I want to run scripts on an Android smartphone, well, actually I asked a question.
This is how QPython3 opens

package com.mycompany.myapp;

import android.app.*;
import android.os.*;
import android.content.*;

public class MainActivity extends Activity 
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
    
    Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.hipipal.qpy3");

Now how to transfer to the opening of the script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elmo Sputterspark, 2018-07-02
@sanya84

Just as described in the documentation. Well, actually, I gave the answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question