Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Androwish for Dummies?

599 views
Skip to first unread message

Ricardo kozmate.net

unread,
Aug 13, 2018, 4:36:51 PM8/13/18
to
Hi group.


I have been looking for a very simple, but complete, example of a
Androwish application. A "hello world"...

The wiki, http://wiki.tcl.tk/39022, Androwish's site,
http://www.androwish.org, and the slides linked from there, seem to not
having any. There are examples, for sure, but none fits what I am
looking for.

Mainly, how do I get the application into the mobile phone? I can not
find a single line about that. Maybe it is absolutely obvious... I do
not even have a (smart)phone, but I will soon (that is the point :-)
maybe it will become obvious then. Still...

Are there any basic tutorial for Androwish?

Ricardo André

--
{ricardo from kozmate.net}

Rich

unread,
Aug 13, 2018, 4:57:23 PM8/13/18
to
Ricardo kozmate.net <ric...@kozmate.net> wrote:
> Mainly, how do I get the application into the mobile phone? I can not
> find a single line about that. Maybe it is absolutely obvious...

This is unrelated to Androwish. You get it onto the phone the same way
you get any other app. onto the phone. You "sideload" it.

You'll want to either lookup "sideloading" in google, and/or look up
the 'adb' tool that can also install over the phone's usb port.

> I do not even have a (smart)phone, but I will soon (that is the point
> :-) maybe it will become obvious then. Still...
>
> Are there any basic tutorial for Androwish?

Not really. There's some info buried within the androwish site, but
much is "try and fail until you succeed".

two...@gmail.com

unread,
Aug 14, 2018, 2:24:54 PM8/14/18
to
On Monday, August 13, 2018 at 1:36:51 PM UTC-7, Ricardo kozmate.net wrote:
> Hi group.
>
>
> I have been looking for a very simple, but complete, example of a
> Androwish application. A "hello world"...

As mentioned, get the .apk file from the androwish downloads page and do an install as described in say,

https://www.greenbot.com/article/2452614/how-to-sideload-an-app-onto-your-android-phone-or-tablet.html

Next, this may be an old school way, but in the wiki, https://wiki.tcl.tk/39474


About 50 lines in you'll find this:

JM 8/9/2014, my set of rc files...
.wishrc

set env(HOME) /sdcard
cd ~
source wishrc.tcl

"copywrc.tcl", which I only use when I install a new Androwish version:

file delete /data/data/tk.tcl.wish/files/.wishrc
file copy .wishrc /data/data/tk.tcl.wish/files

"wishrc.tcl", this is used to immediately get a file browser dialog to select the script I want to run:

sdltk textinput on
set script [tk_getOpenFile]
if {$script != ""} {
source $script
console hide
} else {
puts "hello!"
}



The key item here is that you have to create a file .wishrc and copy it to the specific androwish folder. Since this folder is protected, you can't just use a standard file copy app, you actually have to do the copy from inside androwish.

When you launch androwish the first time, you get a console window. The file copywrc.tcl is what he sources to do the file copy from within androwish.

This .wishrc file will then get invoked on the next startup of androwish, and in the example, it automatically runs a standard open file dialog and then sources whatever you pick, or just outputs "hello" to the console if you don't supply a file to source.


I started with that, except I created a directory /sdcard/home to place the 3 files he mentions, and several others I wrote, instead of just leaving them in /sdcard, and changed the setup of env(HOME)to point to that directory. I created that directory using the ES File explorer app.

There are 2 ways to get these files into a /sdcard/home directory, namely using ssh (I use sshdroid) or by using an external sd card, which you load up with files on say linux or windows (with a sd card usb adapter), and then plug the sd card into the phone and use the ES file explorer app to copy your files to the /sdcard/home directory (or wherever you prefer).

two...@gmail.com

unread,
Aug 14, 2018, 2:36:46 PM8/14/18
to
On Tuesday, August 14, 2018 at 11:24:54 AM UTC-7, two...@gmail.com wrote:

> There are 2 ways to get these files into a /sdcard/home directory

Actually, you can probably just plug your phone into another computer through a usb cable and then drag/drop files that way.

Ricardo kozmate.net

unread,
Aug 15, 2018, 7:38:40 PM8/15/18
to
Em 13/08/18 21:57, Rich escreveu:
> much is "try and fail until you succeed".

So I'll try and fail, and maybe...

Thanks.

--
{ricardo from kozmate.net}

Ricardo kozmate.net

unread,
Aug 15, 2018, 7:47:12 PM8/15/18
to
Em 14/08/18 19:24, two...@gmail.com escreveu:
> [...]
> do an install as described in say,
>
> https://www.greenbot.com/article/2452614/how-to-sideload-an-app-onto-your-android-phone-or-tablet.html
>
> Next, this may be an old school way, but in the wiki
> [...]

Thank you. I will read and try some.

--
{ricardo from kozmate.net}
0 new messages