Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-05 Thread Alexander Burger
On Thu, Oct 05, 2017 at 07:44:06AM +0200, Alexander Burger wrote:
> Yes, sorry, the TGZ contains only the pre-built binary and the required *.l
> libraries.
> 
> Just download the rolling release software-lab.de/picoLisp.tgz, it is (as well
> as software-lab.de/PilBox.tgz) up to date.

Now I uploaded a new PilBox.tgz, containing also the script 'mk.emu.arm32'. It
may help to build 'emu'.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-04 Thread Alexander Burger
On Wed, Oct 04, 2017 at 09:59:50PM +0200, Richard Z wrote:
> > If it is an ARMv7, then you must build 'emu', yes.
> 
> my copy of PilBox.tgz has the timestamp Sep 22th 10:07 and does
> not appear to have the sources of the lisp engine?

Yes, sorry, the TGZ contains only the pre-built binary and the required *.l
libraries.

Just download the rolling release software-lab.de/picoLisp.tgz, it is (as well
as software-lab.de/PilBox.tgz) up to date.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-04 Thread Richard Z
On Wed, Oct 04, 2017 at 06:46:50PM +0200, Alexander Burger wrote:
> Hi,
> 
> > > Since 22th of September a pre-build Lisp env should be included.
> > 
> > well I assume I need to compile my own since my Moto G identifies
> > itself as ARM 7?
> 
> I thought you wrote
> 
> > I have a Moto G4+ which has a 64 bit cpu
> 
> but maybe I mixed up the thread?

that was someone else, my Moto is an even older one with an
Qualcomm MSM8226
 
> If it is an ARMv7, then you must build 'emu', yes.

my copy of PilBox.tgz has the timestamp Sep 22th 10:07 and does
not appear to have the sources of the lisp engine?
I could copy those from another PicoLIsp tarball but maybe more
people could use it.

Richard

-- 
Name and OpenPGP keys available from pgp key servers


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-04 Thread Alexander Burger
Hi,

> > Since 22th of September a pre-build Lisp env should be included.
> 
> well I assume I need to compile my own since my Moto G identifies
> itself as ARM 7?

I thought you wrote

> I have a Moto G4+ which has a 64 bit cpu

but maybe I mixed up the thread?

If it is an ARMv7, then you must build 'emu', yes.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-04 Thread Richard Z
Hi,

> > I have an even older Moto G and was going to try various things.. now
> > it seems https://software-lab.de/PilBox.tgz doesn't include the actual
> > lisp engine sources. Which one should I take?
> 
> Since 22th of September a pre-build Lisp env should be included.

well I assume I need to compile my own since my Moto G identifies
itself as ARM 7?

Richard

-- 
Name and OpenPGP keys available from pgp key servers


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-03 Thread Alexander Burger
Hi Richard,

> I have an even older Moto G and was going to try various things.. now
> it seems https://software-lab.de/PilBox.tgz doesn't include the actual
> lisp engine sources. Which one should I take?

Since 22th of September a pre-build Lisp env should be included.

In any case, if unsure, always the current one (picoLisp.tgz goes
together with PilBox.tgz).

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-10-03 Thread Richard Z
On Sun, Sep 24, 2017 at 08:44:12AM +0200, Alexander Burger wrote:
> Hi Paul,
> 
> > Is there any chance of a version that works with 32-bit Android?  I have
> > a Moto G4+ which has a 64 bit cpu (Snapdragon 617 iirc) but uses a 32
> > bit Android build, so Pilbox sees it as an ARM 7l and won't run. 
> 
> Strange setup. As the CPU is 64 bit, it may well run if you just remove the
> check following System.getProperty("os.arch") in PilBoxActivity.java.
> 
> Otherwise, it is possible if you build bin/picolisp as 'emu'.

I have an even older Moto G and was going to try various things.. now
it seems https://software-lab.de/PilBox.tgz doesn't include the actual
lisp engine sources. Which one should I take?

Richard

-- 
Name and OpenPGP keys available from pgp key servers


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-24 Thread Alexander Burger
Hi Paul,

> Is there any chance of a version that works with 32-bit Android?  I have
> a Moto G4+ which has a 64 bit cpu (Snapdragon 617 iirc) but uses a 32
> bit Android build, so Pilbox sees it as an ARM 7l and won't run. 

Strange setup. As the CPU is 64 bit, it may well run if you just remove the
check following System.getProperty("os.arch") in PilBoxActivity.java.

Otherwise, it is possible if you build bin/picolisp as 'emu'.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-24 Thread Alexander Burger
On Sat, Sep 23, 2017 at 08:51:54AM +0200, pd wrote:
> I saw a message from you talking about not including arm binaries but in
> last tgz I got there's a binary include, should I remove it?

I don't know what the build process at F-Droid needs and can handle, so I think
it is better to leave it inside.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-23 Thread Paul Rubin
It would great if Pilbox goes on F-droid.  That would get it exposure to
users who don't trust Google Play.

Is there any chance of a version that works with 32-bit Android?  I have
a Moto G4+ which has a 64 bit cpu (Snapdragon 617 iirc) but uses a 32
bit Android build, so Pilbox sees it as an ARM 7l and won't run. 
Thanks!

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-23 Thread pd
Yes, I'll try and will post here my experience in order to help with any
trouble.

I saw a message from you talking about not including arm binaries but in
last tgz I got there's a binary include, should I remove it?

On Sat, Sep 23, 2017 at 8:32 AM, Alexander Burger 
wrote:

> On Sat, Sep 23, 2017 at 08:06:44AM +0200, pd wrote:
> > I've created a github repository in https://github.com/pepdiz/pilbox
> and I
> > can keep it synchronized to PilBox.tgz versions if you want
>
> Yes, that would be nice!
>
> The next task would be to publish it ad F-Droid. I haven't studied the
> requirements in detail. Not sure what is needed. Would you try that too?
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>



-- 
Andrés

*~ La mejor manera de librarse de la tentación es caer en ella**. ~ Oscar
Wilde* ~


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-23 Thread Alexander Burger
On Sat, Sep 23, 2017 at 08:06:44AM +0200, pd wrote:
> I've created a github repository in https://github.com/pepdiz/pilbox  and I
> can keep it synchronized to PilBox.tgz versions if you want

Yes, that would be nice!

The next task would be to publish it ad F-Droid. I haven't studied the
requirements in detail. Not sure what is needed. Would you try that too?

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-23 Thread pd
I've created a github repository in https://github.com/pepdiz/pilbox  and I
can keep it synchronized to PilBox.tgz versions if you want

regards

On Thu, Sep 21, 2017 at 1:02 PM, Alexander Burger 
wrote:

> On Thu, Sep 21, 2017 at 12:43:02PM +0200, Richard Z wrote:
> > assuming it is OpenSource, how about submitting to f-droid.org?
>
> This would be a good thing. F-Droid requires a git repo, perhaps of our
> maintainers likes to take care of it? It would follow the same principles
> as we
> have with the PicoLisp releases, i.e. importing the rolling release from
> https://software-lab.de/PilBox.tgz
>
> ♪♫ Alex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>



-- 
Andrés

*~ La mejor manera de librarse de la tentación es caer en ella**. ~ Oscar
Wilde* ~


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-22 Thread Alexander Williams

I also vote +1 for submitting to f-droid.

Whoever takes care of the git repo, please **do not** include the arm64 
binaries as part of the repo, otherwise over time it will grow quite 
large (versioning) and become impossible to clone.



AW

On 17-09-21 11:02 AM, Alexander Burger wrote:

On Thu, Sep 21, 2017 at 12:43:02PM +0200, Richard Z wrote:

assuming it is OpenSource, how about submitting to f-droid.org?


This would be a good thing. F-Droid requires a git repo, perhaps of our
maintainers likes to take care of it? It would follow the same principles as we
have with the PicoLisp releases, i.e. importing the rolling release from
https://software-lab.de/PilBox.tgz

♪♫ Alex



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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-21 Thread Alexander Burger
On Thu, Sep 21, 2017 at 01:02:32PM +0200, Alexander Burger wrote:
> On Thu, Sep 21, 2017 at 12:43:02PM +0200, Richard Z wrote:
> > assuming it is OpenSource, how about submitting to f-droid.org?
> 
> This would be a good thing. F-Droid requires a git repo, perhaps of our
> maintainers likes to take care of it? It would follow the same principles as 
> we
> have with the PicoLisp releases, i.e. importing the rolling release from
> https://software-lab.de/PilBox.tgz

The problem is perhaps that the PilBox sources have such a heterogeneous setup.

Not only the normal Java-, XML, media and resource files, but also a system of
symlinks and Lisp files. The release should then probably also contain the
picoLisp/ directory itself (which is currently separate), including the
pre-built bin/* files.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-21 Thread Alexander Burger
On Thu, Sep 21, 2017 at 12:43:02PM +0200, Richard Z wrote:
> assuming it is OpenSource, how about submitting to f-droid.org?

This would be a good thing. F-Droid requires a git repo, perhaps of our
maintainers likes to take care of it? It would follow the same principles as we
have with the PicoLisp releases, i.e. importing the rolling release from
https://software-lab.de/PilBox.tgz

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-21 Thread Richard Z
On Mon, Sep 18, 2017 at 02:56:44PM +0200, 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

assuming it is OpenSource, how about submitting to f-droid.org?

Btw PicoLisp is already available as package in Termux, with full access to
busybox and a few other goodies.

Richard

-- 
Name and OpenPGP keys available from pgp key servers


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-20 Thread Alexander Burger
On Wed, Sep 20, 2017 at 10:16:19AM +, Alexander Williams wrote:
> Also note, I had to "force stop" PilBox for the calculator to appear,
> otherwise I get "Not Found" page (404?).

That's right. The ZIP archive is only extracted on start of the App. I'm not
sure at the moment where the "Not Found" comes from.

To stop PilBox, it is best to swipe it out of the context menu.

Note also that Android generally terminates the PilBox Server if idle for some
time. This is normal Android policy (perhaps this had happened in your case?).

If your app needs to stay active, you can insert

   (startForeground "MyApp" "Service active")

The two strings will appear in a notification in the status bar as long as the
App is running in the foreground.

And, if needed, you may set a WakeLock with

   (wake T)

The best place for these two expressions is in the 'once' part (as e.g. found in
the Demo App in "demo/App.l").

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-20 Thread Alexander Williams
I'm running LineageOS 14.1 (Android 7.1) and successfully installed 
PilBox and the demo "calc.zip".


As Olaf mentioned, PilBox does not appear in the "Share" menu, and i'm 
not sure why.


However when I download the file from https://software-lab.de/calc.zip 
(Firefox), I get a notification from "Download Manager". When I press 
the notification, PilBox appears and calc.zip gets installed.


Also note, I had to "force stop" PilBox for the calculator to appear, 
otherwise I get "Not Found" page (404?).


Hope this helps.


AW

On 17-09-20 8:22 AM, O.Hamann wrote:

Hello,

short update:

on dtek50/Android 6.01 Pilbox works as expected, I think (though I did
not go through all demo buttons).

Don't know, why this did not work yesterday, possibly a system update
was interfering while trying Pilbox. I did not change anything, just
after restart of the mobile, the Pilbox worked as expected.

On sm-t719/android 7.0 I see no chance to share (german ui: 'senden')
the zip file to Pilbox because Pilbox is not listed in the 'shares'
(german ui: 'Freigabe') dialog box, as other Apps like Termux,
TotalCommander and others do.

Hopefully other users may report successfull runs of Pilbox on Android7.

Or is it possible, that the Android way of handling files differs from
former releases to version 7 ?

By the way, nice hint of Pilbox when running on SM-T705/Android 5.0.2 :-)
(which is armv7, while armv8 is required by the App)


Back to the working Pilbox App:

it is - like always when dealing with picolisp -  again amazing how to
build functional screens with such few lines of code, as shown in the .l
files of demo.zip.

Thank you again, Alex, for continously bringing picolisp into new areas
of use.


Greetings, Olaf





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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-20 Thread Alexander Burger
Hi,

On Wed, Sep 20, 2017 at 10:49:59AM +0200, pd wrote:
> should be possible to interface with native android code?  I suppose it

Not "native" in the PicoLisp sense (i.e. calling the 'native' function) as there
are C libraries accessible in Android. But with the Android toolbox, yes.


> would be similar to interface with java in common picolisp. The goal would
> be to have native app rather than web apps inside an html content

Yes, it does indeed use a (slightly improved) version of the PicoLisp java
interface in "@lib/java.l". It is also briefly described near the end of the
article at https://picolisp.com/wiki/?PilBox.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-20 Thread pd
should be possible to interface with native android code?  I suppose it
would be similar to interface with java in common picolisp. The goal would
be to have native app rather than web apps inside an html content

On Wed, Sep 20, 2017 at 10:22 AM, O.Hamann  wrote:

> Hello,
>
> short update:
>
> on dtek50/Android 6.01 Pilbox works as expected, I think (though I did not
> go through all demo buttons).
>
> Don't know, why this did not work yesterday, possibly a system update was
> interfering while trying Pilbox. I did not change anything, just after
> restart of the mobile, the Pilbox worked as expected.
>
> On sm-t719/android 7.0 I see no chance to share (german ui: 'senden') the
> zip file to Pilbox because Pilbox is not listed in the 'shares' (german ui:
> 'Freigabe') dialog box, as other Apps like Termux, TotalCommander and
> others do.
>
> Hopefully other users may report successfull runs of Pilbox on Android7.
>
> Or is it possible, that the Android way of handling files differs from
> former releases to version 7 ?
>
> By the way, nice hint of Pilbox when running on SM-T705/Android 5.0.2 :-)
> (which is armv7, while armv8 is required by the App)
>
>
> Back to the working Pilbox App:
>
> it is - like always when dealing with picolisp -  again amazing how to
> build functional screens with such few lines of code, as shown in the .l
> files of demo.zip.
>
> Thank you again, Alex, for continously bringing picolisp into new areas of
> use.
>
>
> Greetings, Olaf
>
>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>



-- 
Andrés

*~ La mejor manera de librarse de la tentación es caer en ella**. ~ Oscar
Wilde* ~


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-20 Thread O.Hamann

Hello,

short update:

on dtek50/Android 6.01 Pilbox works as expected, I think (though I did 
not go through all demo buttons).


Don't know, why this did not work yesterday, possibly a system update 
was interfering while trying Pilbox. I did not change anything, just 
after restart of the mobile, the Pilbox worked as expected.


On sm-t719/android 7.0 I see no chance to share (german ui: 'senden') 
the zip file to Pilbox because Pilbox is not listed in the 'shares' 
(german ui: 'Freigabe') dialog box, as other Apps like Termux, 
TotalCommander and others do.


Hopefully other users may report successfull runs of Pilbox on Android7.

Or is it possible, that the Android way of handling files differs from 
former releases to version 7 ?


By the way, nice hint of Pilbox when running on SM-T705/Android 5.0.2 :-)
(which is armv7, while armv8 is required by the App)


Back to the working Pilbox App:

it is - like always when dealing with picolisp -  again amazing how to 
build functional screens with such few lines of code, as shown in the .l 
files of demo.zip.


Thank you again, Alex, for continously bringing picolisp into new areas 
of use.



Greetings, Olaf



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


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


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-18 Thread Jakob Eriksson
Back when I played with it, it could also run ARM apks via
emulation.

On 2017-09-18 19:52, Alexander Burger wrote:
> On Mon, Sep 18, 2017 at 07:10:01PM +0200, Jakob Eriksson wrote:
>> What went of Android x86?
> 
> Would work if somebody compiles the bin/picolisp binary for x86-64 with the
> Android NDK.
> 
> ♪♫ Alex
> 

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-18 Thread Alexander Burger
On Mon, Sep 18, 2017 at 07:10:01PM +0200, Jakob Eriksson wrote:
> What went of Android x86?

Would work if somebody compiles the bin/picolisp binary for x86-64 with the
Android NDK.

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-18 Thread Jakob Eriksson
What went of Android x86?

> 18 sep. 2017 kl. 18:19 skrev Alexander Burger :
> 
> Hi Rick,
> 
>> BTW, since I don't have an Android device, I assume that there is a way
>> to VM my way to glory and fame in PilBox dev. :)
> 
> The closest thing I can think of is using the emulator(s) that come with 
> Android
> Studio. Haven't tried though ...
> 
> ♪♫ Alex
> 
> -- 
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-18 Thread Alexander Burger
Hi Rick,

> BTW, since I don't have an Android device, I assume that there is a way
> to VM my way to glory and fame in PilBox dev. :)

The closest thing I can think of is using the emulator(s) that come with Android
Studio. Haven't tried though ...

♪♫ Alex

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


Re: Announce: PilBox - Building Android Apps in PicoLisp

2017-09-18 Thread rick
On Mon, 18 Sep 2017 14:56 +0200, Alexander Burger wrote:
> Hi all,
> 
> finally, an official version of PilBox is out - and a Wiki article:
> 
>https://picolisp.com/wiki/?PilBox

Ah!  This is wonderful!  Thank you!  (BTW, in sharing this with a friend
today, I characterized this as "a way to dev eschewing icky Java". :)

BTW, since I don't have an Android device, I assume that there is a way
to VM my way to glory and fame in PilBox dev. :)

I have VirtualBox as a base; so, what resources do I additionally need
(e.g., iso install) to build a VM?  (Sorry, I don't know much about
Android, and this is really an Android platform question and not a
picolisp/PilBox question, I know.)

Thanks for any help.  Again, nice work!  Yours, --Rick

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