There are reports that jandroid had trouble to access to storage folder so
all J files are written into it DATA folder which is private to J
unfortunately.
You can still use the storage folder if you have granted storage permission
to J app. and the eg create a folder
/storage/emulated/0/j in android storage and then edit ~config/folders.cfg
to append a line
J /storage/emulated/0/j
and then restart J to take effect. subsequently can write
'abc' fwrite '~J/a1.ijs'
and edit the file with any editor.

I grep there was no reference to IME_ACTION, but only IME_ACTION_...

% git grp IME_ACTION
src/com/jsoftware/j/android/Console.java:        if (actionId ==
EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_NULL &&
null!=event && (event.getAction() == KeyEvent.ACTION_DOWN &&
event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
src/com/jsoftware/j/android/Console.java:    if ((imeActions &
EditorInfo.IME_ACTION_DONE) != 0) {
src/com/jsoftware/j/android/Console.java:      outAttrs.imeOptions |=
EditorInfo.IME_ACTION_DONE;
src/com/jsoftware/j/android/LatinKeyboard.java:    case
EditorInfo.IME_ACTION_GO:
src/com/jsoftware/j/android/LatinKeyboard.java:    case
EditorInfo.IME_ACTION_NEXT:
src/com/jsoftware/j/android/LatinKeyboard.java:    case
EditorInfo.IME_ACTION_SEARCH:
src/com/jsoftware/j/android/LatinKeyboard.java:    case
EditorInfo.IME_ACTION_SEND:
src/com/jsoftware/jn/wd/JEditText.java:          if
(actionId==EditorInfo.IME_ACTION_DONE);
src/com/jsoftware/jn/wd/JEditText.java:          else if
(actionId==EditorInfo.IME_ACTION_NEXT);

On Thu, May 5, 2022, 6:24 PM Jan-Pieter Jacobs <[email protected]>
wrote:

> Hi, I've got a proposal for JAndroid:
> Since Android 11 (I'm on 12 since I've gotten a new phone), my favorite
> setup broke (calling jconsole via Termux, editing files in vim), because
> Android does not allow access anymore to the Android/data/ folder, where J
> keeps its stuff.
>
> Would it be possible to make JAndroid accept shares of .ijs files, offering
> to either save them in e.g. ~temp or directly load them? This would
> overcome a lot of hassle for android users trying to have a decent editor.
> Also, a better text editor in JAndroid would be highly appreciated
> (especially the lack of line wrapping and normal side-scrolling behaviour
> is annoying), but I appreciate that would involve quite a bit of work to
> do…
>
> I think JAndroid's impact shouldn't be underestimated (certainly not if it
> would ever make its way to an app-store); it's extremely cool to be able to
> do all this highlevel stuff (e.g. viewmat, plot, all J built-in's, parallel
> processing (now in beta)) on a phone!
>
> What IME_ACTION does the terminal have? My favorite keyboard (messagEase)
> seems to interpret it as "Done", causing it to close whenever pressing
> enter. Strangely enough this only happens with MessagEase, so I suspect
> it's a bug there. This is very annoying, and if the IME_ACTION of the
> JAndroid terminal is not done, I can file a bugreport for the keyboard. In
> case the IME_ACTION of the JAndroid terminal is "done", could this by any
> chance be changed by something else, that does not tell the keyboard to
> close?
>
> Thanks,
>
> Jan-Pieter
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to