Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-19 Thread Alexander Burger
Hi Olaf,

> But no luck so far.

Hmm, too bad!

For me it worked without problems in both ways (via "Downloads" as well as
'termux-share'). How is the experience of others here?


> I'm using a SM-T719 tablet, which some day got the update to android 7
> (german language) and I do not have any clue how to use it beyond 'open
> termux and do command line things' and 'open browser and do web view things'
> :-)

That should be enough ;)


> Storage permissions, though, I granted before :-)

OK


> It looks like I'm not able to share (senden (??) in german) 'the downloaded
> zip file' to the Pilbox app, because Pilbox App is not offered as target of
> that file action.
> 
> The dialog box Shares (german "Freigabe" is shown) offers Termux,
> TotalCommander, Bluetooth, Email, Wi-Fi Direct and others, but no Pilbox.

Strange. The PilBox App should register itself as a candidate for ZIP archives,
due to the line

   

in the AndroidManifest.xml file. I don't know what else I could do.


> Little progress is shown on my dtek50 blackberry with android 6.0.1:
>  + installed apk directly from your website,
>  + granted storage+location permissions,
>  + downloaded via firefox the zip files from your website
>  + opened the 'Downloads' app (on bb/android 6.0.1 there is one, on
> sm-t719/android 7.0 there was 'Eigene Dateien')
>  + tap on one of the zip entries
> ==> voila: start screen of Pilbox shows the buttons to launch the
> application
> so this is nearer to what's expected than on the other device/android
> combination

Yeah


> But all three tapped buttons result in a "Not Found" page - looks like this
> comes from the Pilbox local app server(?).

Hmm, perhaps you can take a look into the log file. There should be an error
message. PilBox always keeps the current and previous log file, so you could do
in REPL

   $ cat log

or, if you meanwhile started a new PilBox session,

   $ cat log-



> My GT-I9100 with android 4.1.2 (CyanogenMod I think) is too old to be
> supported by Pilbox, I guess.

Right, it needs at least 5.0


> By the way, the Settings screen of the bb/android_6 Pilbox lists the PILs as
> PIL-377 PIL-378  not as PIL-calc or PIL-hello as shown in the wiki
> article

This is correct. The Download App does not pass the name but a number, so PilBox
never sees "hello.zip". 'termux-share' does.

This is the reason why I prepended "PIL-" to the names instead of simply looking
for "*.zip".

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-19 Thread O.Hamann

Thank you very much for that quick reply, Alex.

But no luck so far.

Thanks for your hints and explanations. Another install approach by 
downloading the apk from the softlab url finishes in the same result.


I'm using a SM-T719 tablet, which some day got the update to android 7 
(german language) and I do not have any clue how to use it beyond 'open 
termux and do command line things' and 'open browser and do web view 
things' :-)


Storage permissions, though, I granted before :-)

It looks like I'm not able to share (senden (??) in german) 'the 
downloaded zip file' to the Pilbox app, because Pilbox App is not 
offered as target of that file action.


The dialog box Shares (german "Freigabe" is shown) offers Termux, 
TotalCommander, Bluetooth, Email, Wi-Fi Direct and others, but no Pilbox.



Little progress is shown on my dtek50 blackberry with android 6.0.1:
 + installed apk directly from your website,
 + granted storage+location permissions,
 + downloaded via firefox the zip files from your website
 + opened the 'Downloads' app (on bb/android 6.0.1 there is one, on 
sm-t719/android 7.0 there was 'Eigene Dateien')

 + tap on one of the zip entries
==> voila: start screen of Pilbox shows the buttons to launch the 
application
so this is nearer to what's expected than on the other device/android 
combination


But all three tapped buttons result in a "Not Found" page - looks like 
this comes from the Pilbox local app server(?).


Might have to do with blackberry android specialities???, I don't know.

But it seems, that behaviour differs between android 6 and android 7 ?.

My GT-I9100 with android 4.1.2 (CyanogenMod I think) is too old to be 
supported by Pilbox, I guess.


By the way, the Settings screen of the bb/android_6 Pilbox lists the 
PILs as PIL-377 PIL-378  not as PIL-calc or PIL-hello as shown in 
the wiki article



So far for the moment,
I really have to quit now, no time to get involved deeper in the quest.

Greetings, Olaf




On 19.09.2017 10:18, Alexander Burger wrote:

Hi Olaf,


I'm very excited about your announcement, so I tried it out immediately :-)

Great! :)



Unfortunately I had no luck so far to 'pass the zip to the Pilbox kernel' -
tried it out with the provided hello.zip and calc.zip.

The PilBox App needs permission to access storage. Did you enable it in the App
settings, as mentioned in the article (Then go to Apps -> PilBox -> Permissions
and enable "Location" and "Storage")?

Then it should work, if you e.g. click in a browser on the link
https://software-lab.de/hello.zip and then open it (directly from the browser,
or by clicking on it in the "Downloads" App).



In the wiki there is written
===X
When the PilBox kernel starts, it scans all top-level directories for other
files named "App.l".

==X===

What is ment by 'all top-level directories'?

All directories directly visible in the current working directory. This is the
one you see if you enter "$ ls -l" in the REPL. When the above passing of
'hello.zip' worked, you would see a new directory 'hello/', and inside that
'hello/App.l'.

"Top-level" means that a file 'hello/foo/App.l' would *not* be considered, only
files 'App.l' one level below the working directory.



I tried the termux-share example and tried a download via Fireforx in
default Downloads directory, but without success.

After installing the Termux App, you need to call 'termux-setup-storage' one
time. It creates a directory tree with symbolic links to globally accessible
disk areas. In my case this resulted in

total 72K
lrwxrwxrwx 1 u0_a67 u0_a67 24 May 28 10:04 dcim -> /storage/emulated/0/DCIM/
lrwxrwxrwx 1 u0_a67 u0_a67 28 May 28 10:04 downloads -> 
/storage/emulated/0/Download/
lrwxrwxrwx 1 u0_a67 u0_a67 26 May 28 10:04 movies -> 
/storage/emulated/0/Movies/
lrwxrwxrwx 1 u0_a67 u0_a67 25 May 28 10:04 music -> 
/storage/emulated/0/Music/
lrwxrwxrwx 1 u0_a67 u0_a67 28 May 28 10:04 pictures -> 
/storage/emulated/0/Pictures/
lrwxrwxrwx 1 u0_a67 u0_a67 19 May 28 10:04 shared -> /storage/emulated/0/

So I can do things like

$ cp hello.zip ~/storage/downloads/
$ termux-share ~/storage/downloads/hello.zip

I hope this works for you :)
♪♫ Alex




--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-19 Thread Alexander Burger
Hi Olaf,

> I'm very excited about your announcement, so I tried it out immediately :-)

Great! :)


> Unfortunately I had no luck so far to 'pass the zip to the Pilbox kernel' -
> tried it out with the provided hello.zip and calc.zip.

The PilBox App needs permission to access storage. Did you enable it in the App
settings, as mentioned in the article (Then go to Apps -> PilBox -> Permissions
and enable "Location" and "Storage")?

Then it should work, if you e.g. click in a browser on the link
https://software-lab.de/hello.zip and then open it (directly from the browser,
or by clicking on it in the "Downloads" App).


> In the wiki there is written
> ===X
> When the PilBox kernel starts, it scans all top-level directories for other
> files named "App.l".
> 
> ==X===
> 
> What is ment by 'all top-level directories'?

All directories directly visible in the current working directory. This is the
one you see if you enter "$ ls -l" in the REPL. When the above passing of
'hello.zip' worked, you would see a new directory 'hello/', and inside that
'hello/App.l'.

"Top-level" means that a file 'hello/foo/App.l' would *not* be considered, only
files 'App.l' one level below the working directory.


> I tried the termux-share example and tried a download via Fireforx in
> default Downloads directory, but without success.

After installing the Termux App, you need to call 'termux-setup-storage' one
time. It creates a directory tree with symbolic links to globally accessible
disk areas. In my case this resulted in

   total 72K
   lrwxrwxrwx 1 u0_a67 u0_a67 24 May 28 10:04 dcim -> /storage/emulated/0/DCIM/
   lrwxrwxrwx 1 u0_a67 u0_a67 28 May 28 10:04 downloads -> 
/storage/emulated/0/Download/
   lrwxrwxrwx 1 u0_a67 u0_a67 26 May 28 10:04 movies -> 
/storage/emulated/0/Movies/
   lrwxrwxrwx 1 u0_a67 u0_a67 25 May 28 10:04 music -> 
/storage/emulated/0/Music/
   lrwxrwxrwx 1 u0_a67 u0_a67 28 May 28 10:04 pictures -> 
/storage/emulated/0/Pictures/
   lrwxrwxrwx 1 u0_a67 u0_a67 19 May 28 10:04 shared -> /storage/emulated/0/

So I can do things like

   $ cp hello.zip ~/storage/downloads/
   $ termux-share ~/storage/downloads/hello.zip

I hope this works for you :)
♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Subscribe

2017-09-19 Thread Corku Mortoo



Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-19 Thread O.Hamann

Hi Alex,

I'm very excited about your announcement, so I tried it out immediately :-)

Installation via Google Play worked without problems after searching for 
de.software_lab.pilbox


Pilbox starts as documented in the wiki and repl eval works for e.g. 
'(version)'  and '$ pwd'


Unfortunately I had no luck so far to 'pass the zip to the Pilbox 
kernel' - tried it out with the provided hello.zip and calc.zip.


In the wiki there is written
===X
When the PilBox kernel starts, it scans all top-level directories for 
other files named "App.l".


==X===

What is ment by 'all top-level directories'?

Where do I have to place the zip files?
I tried the termux-share example and tried a download via Fireforx in 
default Downloads directory, but without success.


Pilbox kernel does start up with the empty list.

I think it is a problem with file sharing permissons on my tablet - will 
look into that later, after work - , but if I would only have to put the 
files on a special folder or sth linke that, any hint is welcome :-)


Thanks a lot for sharing this,

Olaf



On 18.09.2017 14:56, Alexander Burger wrote:

Hi all,

finally, an official version of PilBox is out - and a Wiki article:

https://picolisp.com/wiki/?PilBox


PilBox ("PicoLisp Box") is a generic Android App which allows to write Apps in
pure PicoLisp, without touching Java, and without the need of an Android SDK.

You can get the App (the "PilBox kernel") in Google Play store:

https://play.google.com/store/apps/details?id=de.software_lab.pilbox

or - if you prefer - download it directly from:

https://software-lab.de/pilBox.apk


Example Apps are:

https://software-lab.de/hello.zip
https://software-lab.de/calc.zip
https://software-lab.de/demo.zip


If you want to modify the kernel, the sources and build instructions in a README
are at:

https://software-lab.de/PilBox.tgz

I hope it is useful!

♪♫ Alex




--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe