Maxima-on-Android
Maxima-on-Android copied to clipboard
where can i put my init file?
j want maxima to run my init file once it starts.
The same question arrived on the maxima-discuss mailing list: https://sourceforge.net/p/maxima/mailman/message/35224408/
Currently it you type
maxima_userdir;
maxima on android shows that the home directory (which is the directory maxima searches for maxima-init.mac in) is a temporary directory, which is a good thing since maxima will currently use the same directory for temporary data and (if this directory wasn't emptied regularily) therefore would eventually fill up the device's memory.
For the next maxima version I have changed things the code of maxima a bit: https://sourceforge.net/p/maxima/code/ci/48f31003d7475d1421560383d3cd807c1466df5c/tree/src/init-cl.lisp?diff=3fd2b4cf6c6fa7b36c9dd7da5609586ad01a0331
- The name of the directory user data will be read from can be passed to maxima by setting the environment variable $HOME to a directory the user can store permanent data in
- The name of the directory temporary files will be written to can be passed to maxima by setting the environment variable $TMPDIR accordingly.
What still has to be done is making maxima on android set these environment variables accordingly.
It is a good solution. BTW,why does maximaOnAndroid lose settings just loaded? The steps are: .load("/storage/sdcard1/download/maxima-init.mac") All settings in maxima-init.mac works.However,after switching to another app and back to previous running maxima, those settings are lost. Regard! 2016年7月22日 下午10:13于 Gunter Königsman [email protected]写道:The same question arrived on the maxima-discuss mailing list: https://sourceforge.net/p/maxima/mailman/message/35224408/
Currently it you type
maxima_userdir;
maxima on android shows that the home directory (which is the directory maxima searches for maxima-init.mac in) is a temporary directory, which is a good thing since maxima will currently use the same directory for temporary data and (if this directory wasn't emptied regularily) therefore would eventually fill up the device's memory.
For the next maxima version I have changed things the code of maxima a bit: https://sourceforge.net/p/maxima/code/ci/48f31003d7475d1421560383d3cd807c1466df5c/tree/src/init-cl.lisp?diff=3fd2b4cf6c6fa7b36c9dd7da5609586ad01a0331
The name of the directory user data will be read from can be passed to maxima by setting the environment variable $HOME to a directory the user can store permanent data in.
The name of the directory temporary files will be written to can be passed to maxima by setting the environment variable $TMPDIR accordingly.
What still has to be done is making maxima on android set these environment variables accordingly.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
do you have an appKiller installed? On my cellphones this doesn't happen.
As I am no android developer all I will say now might be utterly wrong. But to my knowledge the mechanism that restarts apps on android works the following way:
Android normally trusts applications not to do anything as long as they don't need to => Applications that aren't currently on the screen shouldn't use any energy, shoudln't use any CPU ressources or any hardware and therefore can just kept running until the phone runs out of RAM and has to close a few apps that then are re-started if the user tries to return to them.
app killers instead wildly close apps even if there is RAM available.
If you don't have an app killer installed your problem might justify another ticket:
A few of the apps I have installed offer the option to create a status bar icon as long they are running. This means that they in one way keep being present on the screen even if you temporarily work with another application and therefore are less likely to be killed if the phone needs more RAM and herefore might not need to be restarted if you return to it.
There is no app killer installed. I will try to make maxima create a status icon. thanks! 2016年7月23日 下午2:07于 Gunter Königsman [email protected]写道:do you have an appKiller installed? On my cellphones this doesn't happen.
As I am no android developer all I will say now might be utterly wrong. But to my knowledge the mechanism that restarts apps on android works the following way:
Android normally trusts applications not to do anything as long as they don't need to => Applications that aren't currently on the screen shouldn't use any energy, shoudln't use any CPU ressources or any hardware and therefore can just kept running until the phone runs out of RAM and has to close a few apps that then are re-started if the user tries to return to them.
app killers instead wildly close apps even if there is RAM available.
If you don't have an app killer installed your problem might justify another ticket:
A few of the apps I have installed offer the option to create a status bar icon as long they are running. This means that they in one way keep being present on the screen even if you temporarily work with another application and therefore are less likely to be killed if the phone needs more RAM and herefore might not need to be restarted if you return to it.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.