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
citizen-science
symbai
Commits
a584cee2
Commit
a584cee2
authored
Mar 06, 2014
by
Dave Griffiths
Browse files
adding all activities
parent
d6caa023
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
502 additions
and
4 deletions
+502
-4
android/AndroidManifest.xml
android/AndroidManifest.xml
+11
-0
android/assets/lib.scm
android/assets/lib.scm
+3
-3
android/assets/starwisp.scm
android/assets/starwisp.scm
+147
-1
android/src/foam/symbai/AgreementActivity.java
android/src/foam/symbai/AgreementActivity.java
+30
-0
android/src/foam/symbai/DetailsActivity.java
android/src/foam/symbai/DetailsActivity.java
+30
-0
android/src/foam/symbai/FamilyActivity.java
android/src/foam/symbai/FamilyActivity.java
+30
-0
android/src/foam/symbai/GeneaologyActivity.java
android/src/foam/symbai/GeneaologyActivity.java
+30
-0
android/src/foam/symbai/HouseholdActivity.java
android/src/foam/symbai/HouseholdActivity.java
+30
-0
android/src/foam/symbai/HouseholdListActivity.java
android/src/foam/symbai/HouseholdListActivity.java
+30
-0
android/src/foam/symbai/IncomeActivity.java
android/src/foam/symbai/IncomeActivity.java
+30
-0
android/src/foam/symbai/IndividualActivity.java
android/src/foam/symbai/IndividualActivity.java
+30
-0
android/src/foam/symbai/IndividualChooserActivity.java
android/src/foam/symbai/IndividualChooserActivity.java
+30
-0
android/src/foam/symbai/MigrationActivity.java
android/src/foam/symbai/MigrationActivity.java
+30
-0
android/src/foam/symbai/SocialActivity.java
android/src/foam/symbai/SocialActivity.java
+30
-0
android/src/foam/symbai/starwisp.java
android/src/foam/symbai/starwisp.java
+11
-0
No files found.
android/AndroidManifest.xml
View file @
a584cee2
...
@@ -18,6 +18,17 @@
...
@@ -18,6 +18,17 @@
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
"foam.symbai.VillageActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.VillageActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.HouseholdListActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.HouseholdActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.IndividualActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.DetailsActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.FamilyActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.MigrationActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.IncomeActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.GeneaologyActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.SocialActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.AgreementActivity"
android:configChanges=
"orientation"
></activity>
<activity
android:name=
"foam.symbai.IndividualChooserActivity"
android:configChanges=
"orientation"
></activity>
</application>
</application>
...
...
android/assets/lib.scm
View file @
a584cee2
...
@@ -621,21 +621,21 @@
...
@@ -621,21 +621,21 @@
(
define
(
horiz
.
l
)
(
define
(
horiz
.
l
)
(
linear-layout
(
linear-layout
0
'horizontal
0
'horizontal
(
layout
'fill-parent
'wrap-content
-1
'
left
0
)
(
layout
'fill-parent
'wrap-content
-1
'
centre
0
)
(
list
0
0
0
0
)
(
list
0
0
0
0
)
l
))
l
))
(
define
(
horiz-colour
col
.
l
)
(
define
(
horiz-colour
col
.
l
)
(
linear-layout
(
linear-layout
0
'horizontal
0
'horizontal
(
layout
'fill-parent
'wrap-content
-1
'
left
0
)
(
layout
'fill-parent
'wrap-content
-1
'
centre
0
)
col
col
l
))
l
))
(
define
(
vert
.
l
)
(
define
(
vert
.
l
)
(
linear-layout
(
linear-layout
0
'vertical
0
'vertical
(
layout
'fill-parent
'wrap-content
1
'
left
20
)
(
layout
'fill-parent
'wrap-content
1
'
centre
20
)
(
list
0
0
0
0
)
(
list
0
0
0
0
)
l
))
l
))
...
...
android/assets/starwisp.scm
View file @
a584cee2
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
(
list
'amenities
(
list
"Amenities"
))
(
list
'amenities
(
list
"Amenities"
))
(
list
'school
(
list
"School"
))
(
list
'school
(
list
"School"
))
(
list
'present
(
list
"Present"
))
(
list
'present
(
list
"Present"
))
(
list
'closest-access
(
list
"Closest access"
))
(
list
'closest-access
(
list
"Closest
place of
access"
))
(
list
'gps
(
list
"GPS"
))
(
list
'gps
(
list
"GPS"
))
(
list
'school
(
list
"School"
))
(
list
'school
(
list
"School"
))
...
@@ -479,6 +479,152 @@
...
@@ -479,6 +479,152 @@
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"household-list"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"household"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"individual"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"details"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"family"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"migration"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"income"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"geneaology"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"social"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"agreement"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
"individual-chooser"
(
build-activity
)
(
lambda
(
activity
arg
)
(
activity-layout
activity
))
(
lambda
(
activity
arg
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
)
'
())
(
lambda
(
activity
requestcode
resultcode
)
'
()))
(
activity
(
activity
"sync"
"sync"
(
vert
(
vert
...
...
android/src/foam/symbai/AgreementActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
AgreementActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"agreement"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/DetailsActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
DetailsActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"details"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/FamilyActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
FamilyActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"family"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/GeneaologyActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
GeneaologyActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"geneaology"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/HouseholdActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
HouseholdActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"household"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/HouseholdListActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
HouseholdListActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"household-list"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/IncomeActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
IncomeActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"income"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/IndividualActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
IndividualActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"individual"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/IndividualChooserActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
IndividualChooserActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"individual-chooser"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/MigrationActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
MigrationActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"migration"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/SocialActivity.java
0 → 100644
View file @
a584cee2
// Starwisp Copyright (C) 2013 Dave Griffiths
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package
foam.symbai
;
import
android.app.Activity
;
import
android.os.Bundle
;
import
android.content.Context
;
public
class
SocialActivity
extends
foam
.
starwisp
.
StarwispActivity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
m_Name
=
"social"
;
super
.
onCreate
(
savedInstanceState
);
}
}
android/src/foam/symbai/starwisp.java
View file @
a584cee2
...
@@ -63,6 +63,17 @@ public class starwisp extends StarwispActivity
...
@@ -63,6 +63,17 @@ public class starwisp extends StarwispActivity
// register all activities here
// register all activities here
ActivityManager
.
RegisterActivity
(
"main"
,
starwisp
.
class
);
ActivityManager
.
RegisterActivity
(
"main"
,
starwisp
.
class
);
ActivityManager
.
RegisterActivity
(
"village"
,
VillageActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"village"
,
VillageActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"household-list"
,
HouseholdListActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"household"
,
HouseholdActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"individual"
,
IndividualActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"details"
,
DetailsActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"family"
,
FamilyActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"migration"
,
MigrationActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"income"
,
IncomeActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"geneaology"
,
GeneaologyActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"social"
,
SocialActivity
.
class
);
ActivityManager
.
RegisterActivity
(
"individual-chooser"
,
IndividualChooserActivity
.
class
);
};
};
/** Called when the activity is first created. */
/** Called when the activity is first created. */
...
...
Write
Preview