Skip to content

Commit 77b0b80

Browse files
committed
Add sample project for running qpython script from my own applications
1 parent 3107206 commit 77b0b80

File tree

8 files changed

+33
-10
lines changed

8 files changed

+33
-10
lines changed

docs/_sources/en/callqpyapiinapp.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
How to run QPython script in your application ?
2-
===========================================
2+
=====================================================
33
You could call QPython to run some script or python code in your app
44

55
::
@@ -9,7 +9,7 @@ You could call QPython to run some script or python code in your app
99
intent.setClassName(extPlgPlusName, "org.qpython.qpylib.MPyApi");
1010
intent.setAction(extPlgPlusName + ".action.MPyApi");
1111

12-
Bundle mBundle = new Bundle();
12+
Bundle mBundle = new Bundle();
1313
mBundle.putString("app", "myappid");
1414
mBundle.putString("act", "onPyApi");
1515
mBundle.putString("flag", "onQPyExec"); // any String flag you may use in your context
@@ -57,5 +57,10 @@ You could call QPython to run some script or python code in your app
5757

5858

5959

60+
Sample of running QPython script in other application
61+
-------------------------------------------------------
62+
* `You can see this sample project in github <https://github.com/qpython-android/app-call-qpython-api>`_
6063

61-
`You can see this sample project <https://github.com/qpython-android/app-call-qpython-api>`_
64+
* `Another Application which have published in google play - QPython Plugin for Tasker <https://play.google.com/store/apps/details?id=com.qpython.tasker2>`_
65+
66+
.. image:: ../_static/taskerplugin-for-qpython.png

docs/en/callqpyapiinapp.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@
9494
<li class="toctree-l2"><a class="reference internal" href="qeditor4web.html">Programming from phone/tablet</a></li>
9595
<li class="toctree-l2"><a class="reference internal" href="qeditor4web.html#how-to-programming-from-browser">How to programming from browser</a></li>
9696
<li class="toctree-l2"><a class="reference internal" href="sl4aapis.html">SL4A APIs</a></li>
97-
<li class="toctree-l2 current"><a class="current reference internal" href="#">How to run QPython script in your application ?</a></li>
97+
<li class="toctree-l2 current"><a class="current reference internal" href="#">How to run QPython script in your application ?</a><ul>
98+
<li class="toctree-l3"><a class="reference internal" href="#sample-of-running-qpython-script-in-other-application">Sample of running QPython script in other application</a></li>
99+
</ul>
100+
</li>
98101
</ul>
99102
</li>
100103
</ul>
@@ -222,7 +225,14 @@ <h1>How to run QPython script in your application ?<a class="headerlink" href="#
222225
<span class="p">}</span>
223226
</pre></div>
224227
</div>
225-
<p><a class="reference external" href="https://github.com/qpython-android/app-call-qpython-api">You can see this sample project</a></p>
228+
<div class="section" id="sample-of-running-qpython-script-in-other-application">
229+
<h2>Sample of running QPython script in other application<a class="headerlink" href="#sample-of-running-qpython-script-in-other-application" title="Permalink to this headline"></a></h2>
230+
<ul class="simple">
231+
<li><a class="reference external" href="https://github.com/qpython-android/app-call-qpython-api">You can see this sample project in github</a></li>
232+
<li><a class="reference external" href="https://play.google.com/store/apps/details?id=com.qpython.tasker2">Another Application which have published in google play - QPython Plugin for Tasker</a></li>
233+
</ul>
234+
<img alt="../images/taskerplugin-for-qpython.png" src="../images/taskerplugin-for-qpython.png" />
235+
</div>
226236
</div>
227237

228238

docs/en/howtostart.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ <h1>Programming Guide<a class="headerlink" href="#programming-guide" title="Perm
210210
<li class="toctree-l2"><a class="reference internal" href="sl4aapis.html#other-sl4a-apis">Other SL4A APIs</a></li>
211211
</ul>
212212
</li>
213-
<li class="toctree-l1"><a class="reference internal" href="callqpyapiinapp.html">How to run QPython script in your application ?</a></li>
213+
<li class="toctree-l1"><a class="reference internal" href="callqpyapiinapp.html">How to run QPython script in your application ?</a><ul>
214+
<li class="toctree-l2"><a class="reference internal" href="callqpyapiinapp.html#sample-of-running-qpython-script-in-other-application">Sample of running QPython script in other application</a></li>
215+
</ul>
216+
</li>
214217
</ul>
215218
</div>
216219
</div>
18.1 KB
Loading

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
18.1 KB
Loading
18.1 KB
Loading

qpython-docs/source/en/callqpyapiinapp.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
How to run QPython script in your application ?
2-
===========================================
2+
=====================================================
33
You could call QPython to run some script or python code in your app
44

55
::
@@ -9,7 +9,7 @@ You could call QPython to run some script or python code in your app
99
intent.setClassName(extPlgPlusName, "org.qpython.qpylib.MPyApi");
1010
intent.setAction(extPlgPlusName + ".action.MPyApi");
1111

12-
Bundle mBundle = new Bundle();
12+
Bundle mBundle = new Bundle();
1313
mBundle.putString("app", "myappid");
1414
mBundle.putString("act", "onPyApi");
1515
mBundle.putString("flag", "onQPyExec"); // any String flag you may use in your context
@@ -57,5 +57,10 @@ You could call QPython to run some script or python code in your app
5757

5858

5959

60+
Sample of running QPython script in other application
61+
-------------------------------------------------------
62+
* `You can see this sample project in github <https://github.com/qpython-android/app-call-qpython-api>`_
6063

61-
`You can see this sample project <https://github.com/qpython-android/app-call-qpython-api>`_
64+
* `Another Application which have published in google play - QPython Plugin for Tasker <https://play.google.com/store/apps/details?id=com.qpython.tasker2>`_
65+
66+
.. image:: ../_static/taskerplugin-for-qpython.png

0 commit comments

Comments
 (0)