Hi there community,I've made a very simple Android app that allows opening, modifying and saving a single-file tiddlywikiFor saving I use a slightly modified andtidwiki saver, I made a plugin from itThe app opens an index.html file that must be present in the Documents folder and makes a backup every time it savesIt misses some important features:
- importing / exporting files- fullscreen
- proper handling when smartphone gets rotated (portrait / landscape)
This is the first Android app I ever made - my skills are based on googling and copy-paste ;)If anyone is interested to help adding features or to help testing, don't hesitate to leave me a reply in this threadHere attached is an installable android apk and the saver plugin. To be able to install apps that come frome sources other than the play store, one must allow installing apps from unknown sources (Do it at your own risk!). See: https://www.androidcentral.com/unknown-sourcesThe app needs permission to access the filesystem (Settings - Apps - TW - Permissions).The tiddlywiki file must be placed in the "Documents" folder (named "Documents" - /storage/emulated/0/Documents, in the Android "Home" folder)
The file needs the "androidsaver" plugin installed (it's just one small tiddler) - the easiest way is installing the plugin on a pc/laptop and transferring it to the phone afterwards
You'll notice that it's no big thing, the wiki opens, you can work with it, some features don't work (see above) but it saves and it makes backups in Documents/tw-backup
-- Mohammad
In the world of coincidences, I just today made a not-ready-for-prime-time Android app. I'm sure yours is much better. At the moment, it uses an external file manager (ES File) to pick files. But since it's Android 4.4, I don't know if it can save on an external device yet (it can save internally).
I was able to use the original andtidwiki saver. I'm wondering what you needed to change, or if there is some enhancement?
Thanks!-- Mark
One quick and non-professional way is to attach file like myApp.apxx--Mohammad
It just needs to be called "twi" instead of "Android".
-- Mark
It is really exciting to hear you are playing with this. I have dreamed of having a way to build a tiddlywiki and publish it as an app. I think we need to work together to document the process so anyone can design and publish a tiddlywiki as an app. Perhaps even its own folder not documents. Of course individuals will have to try and get it into the app store but we can share the experience. With acknowledgement of tiddlywiki.com and a custom design to drive new users I do not see why we could not charge for the apps. Perhaps a vanila tiddlywiki app build by this team and sheparded through to the app store with a low price we can all afford, can go to the community via jeremy.
What do you think?
Tony
It won't install on my system -- what minimum SDK level did you specify?Nice touch having the icon in there.The orientation problem is standard. You have to save the currently loaded file path in onPause (I think -- it might be something else) and then reload the TW in onResume. I'm sure the technique is outlined in more than one tutorial out there. The problem for TW is that if you happen to be typing something and then tilt the screen, it's all gone. I guess the solution would be to enhance the webview interface to tell the TW file to save before the pause. If that's possible ...I notice the path you specify is for the internal system. Do you have the android.permission.WRITE_EXTERNAL_STORAGE set in the manifest? Supposedly if you set it, on Android 6 - 8 you should be able to write the external storage card.
FolksIt is really exciting to hear you are playing with this. I have dreamed of having a way to build a tiddlywiki and publish it as an app. I think we need to work together to document the process so anyone can design and publish a tiddlywiki as an app. Perhaps even its own folder not documents. Of course individuals will have to try and get it into the app store but we can share the experience. With acknowledgement of tiddlywiki.com and a custom design to drive new users I do not see why we could not charge for the apps. Perhaps a vanila tiddlywiki app build by this team and sheparded through to the app store with a low price we can all afford, can go to the community via jeremy.
What do you think?
It won't install on my system -- what minimum SDK level did you specify?Nice touch having the icon in there.The orientation problem is standard. You have to save the currently loaded file path in onPause (I think -- it might be something else) and then reload the TW in onResume. I'm sure the technique is outlined in more than one tutorial out there. The problem for TW is that if you happen to be typing something and then tilt the screen, it's all gone. I guess the solution would be to enhance the webview interface to tell the TW file to save before the pause. If that's possible ...
New app version with confirmation dialogs working.The app works on my android 6.0 - I believe that's also the minimum version required
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1370a710-b488-44c0-98d7-80ce4b2d6e06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<TW.apxx>
Hi BurningTreeC, Mark,Great work! A modern TiddlyWiki app for Android is long overdue, and could be very popular.If you'd like to make it a community property then we could host it alongside TiddlyDesktop (currently at https://github.com/Jermolene/TiddlyDesktop, but moving to https://github.com/TiddlyWiki/TiddlyDesktop
Yes, it would be great to see how you're doing the load/save. I started out trying to load the actual bytes into memory, but it never quite worked (never got past the load screen). Then changed approach to use loadUri and that worked great.
With your settings, are you able to save to an external drive?
Further input!The current theme is very nice and responsive! But it is not mobile first!--Mohammad
Here's my WAI. It's much simpler since I don't try to save backups. But it allows you to save any file from anywhere (but will silently fail if there is a permissions mismatch).I would like to see the code where you load the incoming file. I think you might be using a better approach than I used (a simple urlLoad).
File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS), "index.html");
mWebView.loadUrl(Uri.fromFile(f).toString());
In the longer term, one of the weaknesses of AndTidWiki was how hard it was to switch between TW files. Android now has a ViewPage layout. So you could just swipe sidewise and change what file you're viewing.
Good luck!-- Mark
If you use my WAI, then you can load a TW file from anywhere, making testing easier.I've just put the code up on GitHub, though I don't know if I did it correctly. See https://github.com/Marxsal/Quinoid01.
** Still waiting for @TiddlyTweeter's comment who has his own definition of later ;) **
BTC,Why you set name as app-release instead TW.apk?
-Mohammad
BurningTreeC wrote:** Still waiting for @TiddlyTweeter's comment who has his own definition of later ;) **LOL! ... Well I got the app installed on Android 8.0 no problem ... only issue it the phone apparently has no "Documents" folder :-). So this could take a little while longer ...
BTC:
** Still waiting for @TiddlyTweeter's comment who has his own definition of later ;) **
TT: LOL! ... Well I got the app installed on Android 8.0 no problem ... only issue it the phone apparently has no "Documents" folder :-). So this could take a little while longer ...BTC: Hm :) ... The latest version should make that folder now if it's missing ... (I hope)
Cheers
Mohammad
Thank you
You may find this in an alternate keyboard, I saw one designed for ms excel which may give you come arrow keys.
Regards
Search for noteself and android to find the discussion on here. Can't seem to link to it... Grrrrr Google.
* Not limited to a single folder. This is the biggest shortcoming of the webdav android tw saver app. You have to put all tiddlywikis in single folder. Ideally we should be able to long press an html from anywhere and choose to open with the tw app.
* Ability to share text to a default tiddlywiki, which will be stored as a tiddler.
* Ability to create quick notes from notification bar in a default tiddlywiki.
Not necessary, but would be nice to also have.
* Ability to create a new empty wiki.
* Cloud Sync
Sincerely,
Riz
Hi BTC,
Can you clarify what features will the app have over the existing android tiddlysaver webdav app? Consider the following features.
* Not limited to a single folder. This is the biggest shortcoming of the webdav android tw saver app. You have to put all tiddlywikis in single folder. Ideally we should be able to long press an html from anywhere and choose to open with the tw app.
* Ability to share text to a default tiddlywiki, which will be stored as a tiddler.
* Ability to create quick notes from notification bar in a default tiddlywiki.
Not necessary, but would be nice to also have.
* Ability to create a new empty wiki.
* Cloud Sync
Sincerely,
Riz
https://play.google.com/store/apps/details?id=com.theolivetree.webdavserver
Here are the steps if you want to try.
1. Download and install the app
2. Open the app. Go to its settings page (the spanner icon on the top right corner of the app)
3. Set "Network interface" to "Loopback"
4. Set port to something like "8070"
5. Set "Home directory" to "Custom Folder"
6. Set "Custom folder" to a folder in your internal memory. (I have not tried with external sd)
7. Now come back to main screen and press the power button there.
The server will start.
Keep thTiddlywiki files in the "Custom folder" you set in step 6.
Goto 127.0.0.1:8070 in your browser. You can see the list of files. Open a Tiddlywiki file and try making changes and save.
There is nothing fancy here. That is why I want you to succeed in this endeavour. The share and quick notes would go a long way to make Tiddlywiki mobile usage easier.
Wish you all the luck in the world.
Sincerely,
Riz
YES.
> Have you got ideas ...
Riz and Mark made many interesting comments I can't add much to.
BUT the beauty of what you have made is its simplicity of install. That is exactly right for Android IMO. Meaning I could ask friends to trial it assured it will work. It's that "Tiddly desktop" type experience that will gain users.
IF, eventually, it could be on Play Store, so much the better.
A few comments ....
In looking at improvements there seem to be TWO different issues ... (a) the mechanism of install & running; (b) the "mobile friendliness" of installed TW.
Though it's, as it were, not your main objective to have to address B when coping with A ... I do think it matters somewhat.
My thought here is that the default first installed TW be prepped with a style that is more mobile optimised. That could maybe be an assembledge of things already made by you, JD and Thomas.
Part of the issue for optimal Android TW is both CSS stylistics and the structure of the TW. I suspect that we'll better evolve into what is needed once Android usage increases. Which I am sure your app will foster.
One thing I'd like to understand myself is HOW to activate TW startup actions that use environment detection Tiddlers (.info) to modify the interface or apply a specific theme.
On the specifics of install and running ... some thoughts, echoing others ...
1 - I think it's great DEFAULT behaviour is to create a "Documents" folder if it does not exist. The simplicity is just right. FWIW, I suggest the default be "Documents/TW/" to prevent possible conflicts if a user already has an "index.html" (which is not a TW) in that folder.
2 - Though I have no idea how one could do it, I think a more advanced CUSTOM mode, which is what others have basically covered in suggestions, looks attractive. FWIW, in my own use I'd love to (a) be able to have access to more than one TW; (b) preferably concurrent; (c) some way to access "template/edition" TW -- either in an online depository or one's own on phone.
As I think about it more ... the thing with smart phones in general is they are optimal for Apps DELIMITED to specific purposes. So a thought is to not just one "App" but rather several. I hope it's clear what I mean by that!
many thanks & best wishes for proxima jahre.
Josiah
Hi there community,I've made a very simple Android app that allows opening, modifying and saving a single-file tiddlywikiFor saving I use a slightly modified andtidwiki saver, I made a plugin from itThe app opens an index.html file that must be present in the Documents folder and makes a backup every time it savesIt misses some important features:- choosing which file to edit (edits index.html in "Documents" right now)- exporting files- fullscreen (throws an error at the moment, but I'm close)These features are implemented:- creates a backup file in Documents/tw-backup on every save- proper handling when smartphone gets rotated (portrait / landscape)- importing files- automatic creation of "Downloads" directory- automatic creation of "index.html" in "Documents" if it doesn't exist (uses an empty 5.1.19 tiddlywiki)- prompts for permission to access files on start (no need to open settings)This is the first Android app I ever made - my skills are based on googling and copy-paste ;)If anyone is interested to help adding features or to help testing, don't hesitate to leave me a reply in this threadHere attached is an installable android apk and the saver plugin. To be able to install apps that come frome sources other than the play store, one must allow installing apps from unknown sources (Do it at your own risk!). See: https://www.androidcentral.com/unknown-sourcesThe app needs permission to access the filesystem (Settings - Apps - TW - Permissions).The tiddlywiki file must be placed in the "Documents" folder (named "Documents" - /storage/emulated/0/Documents, in the Android "Home" folder)You'll notice that it's no big thing, the wiki opens, you can work with it, some features don't work (see above) but it saves and it makes backups in Documents/tw-backupUpdates:an app .apk for testing can be downloaded here: https://github.com/BurningTreeC/TWApp/blob/master/app/release/app-release.apknice weekend to all tiddlers,BurningTreeC
Folks esp BTC,I have being following this with great interest but Christmas / New Year and the temporary loss of one eye, has slowed me down.
I have trawled the thread and cant find where to locate the latest apkxx, Or a link to it to use on the phone. What is the definitive location for it now?and is there a step by step instruction to installing the apk?
I was keen to contribute earlier, and will once I have install it and reviewed it.What BTC is saying about Termux API's sounds very interesting but I am not sure exactly how this works, would you have Termux and The App installed, and The App Enables issuing commands and thus tiddlywiki commands sent to the Termux shell?
From a design Features point of View I love the idea of the key community app that can open multiple tiddlywikis etc... this is a critical first step. However I would be keen for individuals in the community to provide the means by which to package a custom edition of TiddlyWiki within an app, so for example if I built a TiddlyWiki that provides say decision support tools, or an evaluation tool, or a dashboard, advanced notetaker I / We could package this and distribute independent apps, ideally through the app store.
This would be using TiddlyWiki as an app development platform we are all familiar with, deployed on the android platform would provide a rapid application development and deployment path. This would really turbocharge the mobile first applications whilst ensuring the final app is largely open source with TiddlyWikis famous hack-ability. The community can stream line this path and TiddlyWiki could be come a key method to deploy to multiple platforms solutions, the advantage being everyone in the community contributes to making this a fast path to app development, while retaining all tiddlywikis other advantages and platform.The Question is then can these custom editions be sold in the app store for a few dollars and provide a return to the edition developer and person who packaged it as an App?
I think some licencing standards should be published such as tiddlywiki must be linked to, acknowledgements included, and details how to hack your tiddlywiki made available in a custom app.
RegardsTony
> BTC: Do you think the app is going in the right direction?YES.
> Have you got ideas ...
Riz and Mark made many interesting comments I can't add much to.
BUT the beauty of what you have made is its simplicity of install. That is exactly right for Android IMO. Meaning I could ask friends to trial it assured it will work. It's that "Tiddly desktop" type experience that will gain users.
IF, eventually, it could be on Play Store, so much the better.
A few comments ....
In looking at improvements there seem to be TWO different issues ... (a) the mechanism of install & running; (b) the "mobile friendliness" of installed TW.
Though it's, as it were, not your main objective to have to address B when coping with A ... I do think it matters somewhat.
My thought here is that the default first installed TW be prepped with a style that is more mobile optimised. That could maybe be an assembledge of things already made by you, JD and Thomas.
Part of the issue for optimal Android TW is both CSS stylistics and the structure of the TW. I suspect that we'll better evolve into what is needed once Android usage increases. Which I am sure your app will foster.
One thing I'd like to understand myself is HOW to activate TW startup actions that use environment detection Tiddlers (.info) to modify the interface or apply a specific theme.
On the specifics of install and running ... some thoughts, echoing others ...
1 - I think it's great DEFAULT behaviour is to create a "Documents" folder if it does not exist. The simplicity is just right. FWIW, I suggest the default be "Documents/TW/" to prevent possible conflicts if a user already has an "index.html" (which is not a TW) in that folder.
2 - Though I have no idea how one could do it, I think a more advanced CUSTOM mode, which is what others have basically covered in suggestions, looks attractive. FWIW, in my own use I'd love to (a) be able to have access to more than one TW; (b) preferably concurrent; (c) some way to access "template/edition" TW -- either in an online depository or one's own on phone.
As I think about it more ... the thing with smart phones in general is they are optimal for Apps DELIMITED to specific purposes. So a thought is to not just one "App" but rather several. I hope it's clear what I mean by that!
many thanks & best wishes for proxima jahre.
Josiah
Thanks for your considered responce.
I will keep an eye out for the next test version so I can contribute. I am prepared to use a test knowing later uninstalls etc may be nessasary.
My eye has a gas bubble in it for a couple of weeks. An interesting expierience for sure. I have a built in spirit level.
Fyi
I played with a geolocation plugin and it worked on noteself if I remember correctly, presumably firefox has access to some of the phone devices. I say this because I expect there is a rich set of interfaces available without termux, but I do not know enought to say what.
Nevertheless a termux interconnected app could introduce a lot of possibilities. Very interesting idea.
Regards
Tony
Jan has done a lot of work on maps and leaflet, see here if you're interested;
https://groups.google.com/forum/m/#!searchin/TiddlyWiki/Geoloc/tiddlywiki/GG6IugxnFxU
There is further help here;
https://groups.google.com/forum/m/#!searchin/TiddlyWiki/Geoloc/tiddlywiki/b2ekqFfjvz0
If you search the forum for 'Geoloc' those are the top two results, at the moment.
I had a lot of trouble getting it working, and be warned that the plugin, as is, can create an unrecoverable red Java error popup which killed several test wikis. Try it out on an empty wiki would be my humble advice.
Once working it is amazing to be able to geolocate on mobile within TW5. Thanks you leaflet plugin author Sylvain!
Looking good ... !I thought it interesting how you used bits of the TiddlyDesktop type menuing.The ways of making new wiki looks v. good.Interested to see where it all arrives.Best wishesJ.
I'm not a developer, and I haven't got a github account but... I've got an android phone! Will sign up and see if I can help in some way. Even if it's only testing and feedback. We can still ask questions about mobile here on the forum though, right? Or is github a forum too?