Artifact Content
Not logged in

Artifact e79321b462be14959ada8030815f8f7a482d79df:

Wiki page [Example Scripts] by chw 2019-04-26 07:14:54.
D 2019-04-26T07:14:54.056
L Example\sScripts
P 98e57a341f10725bb4b395fd24d3d052670c065e
U chw
W 8301
<h2>Example Scripts And Screenshots</h2>

Many packaged example scripts can be invoked on typical Android devices by a <nowiki>"<tt>androwish:///&lt;pathname&gt;</tt>"</nowiki> URL on the VFS mounted <tt>/assets</tt> folder. This works with the Android web view component, Firefox, and Chrome. For Firefox, the last path component (the tcl file) must be URL encoded, e.g. <tt>test.tcl</tt> must be written as <tt>test%2Etcl</tt>.

<b>Tk widget demo<b>

    <a href="androwish:///assets/sdl2tk8.6/demos/widget">androwish:///assets/sdl2tk8.6/demos/widget</a>, <a href="/index.html/artifact/e69fb6a25fbb39fdb238c027c67954c3d610f740">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/widget_demo.png?name=3e4c49fda0f07d6e4ea02a46e903fb1c48192883"
alt="Screenshot widget demo">
<br>Screenshot taken on an i-onik TP9.7-1200QC-Ultra tablet
<br><br>
</nowiki>

<b>App Life-cylce, accelerometer, finger events</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_demo%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_demo%2Etcl</a>, <a href="/index.html/artifact/053ec4dd63c7eda1afbee5bc12abf6cf6cde2a2e">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/android_demo.png?name=c849cf02a0fba453ba2e78e7471b08a078a16da8"
alt="Screenshot app life-cycle, accelerometer, finger events">
<br>Screenshot taken on a Lenovo Yoga 8 tablet
<br><br>
</nowiki>

<b>Accelerometer with canvas widget</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_accel%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_accel%2Etcl</a>, <a href="/index.html/artifact/667617d60642f61bb50a8748d57e9752542c55c2">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/android_accel.png?name=25175b223d9c535e3a1b74e79cacbcdd50e569e6"
alt="Screenshot accelerometer with canvas widget">
<br>Screenshot taken on a Lenovo Yoga 8 tablet
<br><br>
</nowiki>

<b>Device sensors</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_sensors%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_sensors%2Etcl</a>, <a href="/index.html/artifact/10d05e3afbea27ba9b265d687bb5c4339400c6d7">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/android_sensors.png?name=eb711c0d2ee92906d14fd3efd3cd8249127d6e43"
alt="Screenshot device sensors">
<br>Screenshot taken on a Lenovo Yoga 8 tablet
<br><br>
</nowiki>

<b>Compass using magnetic field sensor and accelerometer</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_compass%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_compass%2Etcl</a>, <a href="/index.html/artifact/35c23bc3dba9e8a76c66238c4515f497fdc4e49e">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/android_compass.png?name=9ece403364b3b7bbe815616eb5705f64fdaa1a84"
alt="Screenshot compass using magnetic field sensor and accelerometer">
<br>Screenshot taken on a Lenovo Yoga 8 tablet
<br><br>
</nowiki>


<b>Pinch-to-zoom with canvas widget</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_zoom%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_zoom%2Etcl</a>, <a href="/index.html/artifact/3249f06d13bb8cc12fec03904b2d1f457d9990bd">source code</a>

<b>Eliza: speech recognition and speech-to-text</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_eliza%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_eliza%2Etcl</a>, <a href="/index.html/artifact/005f6c74f7d50746234e7a2a37aae2e139e47097">source code</a>

<b>TclMixer: audio output and mod music playback</b>

      <a href="androwish:///assets/tclmixer1.2.3/test%2Etcl">androwish:///assets/tclmixer1.2.3/test%2Etcl</a>, <a href="/index.html/artifact/698da6411516e6c6c11c0d671d4cfa3e5f0a3f03">source code</a>

<b>Simple VNC viewer</b>

      <a href="androwish:///assets/vnc0.4/vncviewer%2Etcl">androwish:///assets/vnc0.4/vncviewer%2Etcl</a>, <a href="/index.html/artifact/4cd95e6bb9d81ef3d5cde7e1cc8b48a605ddad0c">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/vnc_viewer.png?name=c99c4c1ef272989c24362c4cdf6adbfffc0b2519"
alt="Screenshot VNC viewer">
<br>Screenshot taken on ASUS Fonepad K004 ME371G
<br><br>
</nowiki>

<b>Barcode generation using ZINT</b>

      <a href="androwish:///assets/zint2.5.0/demo%2Etcl">androwish:///assets/zint2.5.0/demo%2Etcl</a>, <a href="/index.html/artifact/c5bb41c7eeeb7d4f71eff2a7b662d7005b442766">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/demo_zint.png?name=086cda7bc38446b6b63779b2c03b8bc35ab6e8d3"
alt="Screenshot barcode generation using ZINT">
<br>Screenshot taken on a HTC One V smartphone
<br><br>
</nowiki>

<b>GPS/NMEA display</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_gps%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_gps%2Etcl</a>, <a href="/index.html/artifact/f3dc47b6c9bda26fa75b2f8aff1776be62df8e64">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/android_gps.png?name=1af9e943a793f1647002eae995b8c9337500039c" alt="Screenshot GPS/NMEA display">
<br>Screenshot taken on a HTC One V smartphone
<br><br>
</nowiki>

<b>Walkie-talkie using snack and UDP multicast</b>

      <a href="androwish:///assets/snack2.2.10/tcl_talkie%2Etcl">androwish:///assets/snack2.2.10/tcl_talkie%2Etcl</a>, <a href="/index.html/artifact/ef0cfc9d2c169be01954b0ac07820b7910d2e1ba">source code</a>

<b>Simple chat using Bluetooth serial port profile (SPP)</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_btchat%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_btchat%2Etcl</a>, <a href="/index.html/artifact/a50231f216f6196323065450eb69d32865a9c254">source code</a>

<b>TkSQLite database frontend for SQLite</b>

      <a href="androwish:///assets/tksqlite0.5.11/tksqlite%2Etcl">androwish:///assets/tksqlite0.5.11/tksqlite%2Etcl</a>, <a href="/index.html/artifact/a293b150934cbb7a79233c5e44b44dcd7c50e435">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/tksqlite.png?name=ba55ec8dfa425758920e53ced29e2443aed22d07" alt="Screenshot TkSQLite">
<br>Screenshot taken on a Lenovo Yoga 8 tablet
<br><br>
</nowiki>

<b>Canvas 3D using camera for texturing cube surfaces</b>

      <a href="androwish:///assets/Canvas3d1.2.1/demo/photocube%2Etcl">androwish:///assets/Canvas3d1.2.1/demo/photocube%2Etcl</a>, <a href="/index.html/artifact/d0f68f21fb0e44bbe3f0a2ea60fec938efb8aac6">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/photocube.png?name=46325c2aa887304e326c0a98b5786bc917e0c6a8" alt="Screenshot photocube">
<br>Screenshot taken on a Lenovo Ideatab A3000-H tablet
<br><br>
</nowiki>

<b>Interactive MIDI music</b>

      <a href="androwish:///assets/music0.1/music%2Etcl">androwish:///assets/music0.1/music%2Etcl</a>, <a href="/index.html/artifact/5e178cdc6d4b25834775a0f57a0126db8ecffd92">source code</a>
<nowiki>
<br><br>
<img src="/raw/misc/music_demo.png?name=f4703d10a6ce39bcf3822c81fb8702f6bc3fb433" 
alt="Screenshot MIDI music">
<br>Screenshot taken on a Lenovo Ideatab A3000-H tablet
<br><br>
</nowiki>


<b>Piano, a pocket synthesizer</b>

      <a href="androwish:///assets/music0.1/piano%2Etcl">androwish:///assets/music0.1/piano%2Etcl</a>, <a href="/index.html/artifact/9c5639b44b21a292c879ff14ed99ab184332b4da">source code</a>


<b>Data Matrix Code scanner using camera and [dmtx command]</b>

      <a href="androwish:///assets/dmtx0.7.5/android_demo%2Etcl">androwish:///assets/dmtx0.7.5/android_demo%2Etcl</a>, <a href="/index.html/artifact/e3892410b86641a57a9f9238f726148d4e6ed415">source code</a>


<b>Barcode scanner using camera and [zbar command]</b>

      <a href="androwish:///assets/zbar0.10/android_demo%2Etcl">androwish:///assets/zbar0.10/android_demo%2Etcl</a>, <a href="/index.html/artifact/4ce598aa1fc82dc9a41a04992a94673cb4d863af">source code</a>


<b>Minimalist WebCam in &#8776; 100 LOC</b>

      <a href="androwish:///assets/sdl2tk8.6/demos/android_webcam%2Etcl">androwish:///assets/sdl2tk8.6/demos/android_webcam%2Etcl</a>, <a href="/index.html/artifact/ade494d56814fc1ba5d72886ee3233f7bed44de0">source code</a>

<b>Tkbugz, a game requiring a VR headset and a USB or Bluetooth joystick</b>

      <a href="androwish:///assets/tkbugz/vr_bugz%2Etcl">androwish:///assets/tkbugz/vr_bugz%2Etcl</a>, <a href="/index.html/artifact/53b62ad7dac6c148902b40886c0c5ed7ac38d8af">source code</a>


Z e1fbdefb623e386b3e21d07f435b99bc