Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dave Griffiths
mongoose-2000
Commits
e4d5ddfd
Commit
e4d5ddfd
authored
Jul 16, 2014
by
Dave Griffiths
Browse files
added paranoia features and removed export
parent
4492c06f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
android/assets/starwisp.scm
android/assets/starwisp.scm
+10
-3
android/src/foam/mongoose/starwisp.java
android/src/foam/mongoose/starwisp.java
+3
-0
No files found.
android/assets/starwisp.scm
View file @
e4d5ddfd
...
...
@@ -1567,6 +1567,16 @@
"getting-db"
"http://192.168.2.1:8888/mongoose.db"
(
string-append
"/sdcard/mongoose/mongoose.db"
))
;; save paranoid backup
(
http-download
"getting-db"
"http://192.168.2.1:8889/symbai.db"
(
string-append
"/sdcard/symbai/backup/symbai-"
(
date-time->string
(
date-time
))
".db"
))
(
http-download
"getting-log"
"http://192.168.2.1:8889/log.txt"
(
string-append
"/sdcard/symbai/server-log.txt"
))
)
entity-types
)
(
list
))))
...
...
@@ -1583,9 +1593,6 @@
(
lambda
(
e
)
(
string-append
"/sdcard/mongoose/"
e
".csv"
))
entity-types
))))))
(
mbutton2
"sync-export2"
"Export"
(
lambda
()
(
list
(
start-activity
"export"
0
""
))))
(
mbutton2
"sync-export"
"Email local data"
(
lambda
()
(
debug!
"Sending mail"
)
...
...
android/src/foam/mongoose/starwisp.java
View file @
e4d5ddfd
...
...
@@ -94,6 +94,9 @@ public class starwisp extends StarwispActivity
File
appdir
=
new
File
(
m_AppDir
);
appdir
.
mkdirs
();
File
backupdir
=
new
File
(
m_AppDir
+
"/backup/"
);
backupdir
.
mkdirs
();
// build static things
m_Scheme
=
new
Scheme
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment