source: other-projects/tipple-android/README.txt@ 29061

Last change on this file since 29061 was 29061, checked in by ak19, 10 years ago

Dr Bainbridge added an extra step

File size: 5.4 KB
Line 
1TIPPLE README
2-------------
3
41. SVN checkout this URL to somewhere (from now on I will call this "somewhere" the "root" dir):
5 http://svn.greenstone.org/other-projects/tipple-android/
6
7 The layout of the folder you checked out is as follows:
8 tipple-lib (main Tipple library)
9 tipple-standalone (main implementation of Tipple that references tipple-lib)
10 osmosis (plugin to create your own 2D map files for Tipple, see PDF file "mapsforge-getting-started.pdf" inside this folder)
11 mixare-fixes (optional fixes for Mixare)
12 i-greenstone-server-files (things for i-greenstone-server)
13
142. Assuming you have at least Android 2.3.3 SDK installed, import into Eclipse the folders
15 tipple-lib, tipple-standalone
16
17 Eclipse > File > Import > Android > Existing Android Code into Workspace
18
193. Edit setup.sh if necessary in order to put the Android SDK "platform-tools" folder
20 on the classpath, then type into cygwin terminal:
21
22 source ./setup.sh
23
244. Unzip/untar "mixare-development" into the same directory as mixare-fixes.sh, and
25 rename it to "mixare".
26
27 (Latest repo of Mixare is probably here, in case you do want to work with the latest version:
28 https://github.com/DevBinnooh/mixare)
29
305. In the root directory of trunk, execute this .sh script in your cygwin terminal by typing:
31
32 ./mixare-fixes.sh
33
346. Launch Eclipse, and import:
35 mixare (this requires you to select "mixare/" in the import projects window)
36 mixare-lib (this requires you to select "mixare/plugins" in the import projects window)
37
38 (If Eclipse complains about one of these projects not having a "res" folder, just create
39 a blank folder called "res" for the project in Eclipse)
40
41 Mixare needs Google APIs level 10. Run the Android SDK Manager (button in toolbar
42 in Eclipse) and tick Android 2.3.3 (API 10) -> Google APIs.
43
44 Within Eclipse, run as "Android Application" the mixare project (not mixare-lib).
45 This will install it onto your phone. Now with that done, the only thing left
46 to do is run as "Android Application" the project:
47
48
497. Type into cygwin terminal (with Android device connected with USB):
50
51 adb install i-greenstone-server-files/i-jetty-3.1-aligned.apk
52
53 This will install i-greenstone-server on your phone. Then launch the
54 application *at* *least* *once* and wait for it to set itself up.
55
56 Then do:
57
58 pushd i-greenstone-server-files/greenstone/webapps/
59 tar xvzf greenstone3.tar.gz
60 popd
61
62 adb push i-greenstone-server-files/greenstone/webapps/greenstone3/sites/localsite/collect/tipple-universe /sdcard/greenstone/webapps/greenstone3/sites/localsite/collect/tipple-universe
63
64 (For the sake of being conservative, I have given you my own development files to push over. If you want to
65 start from scratch and compile your own i-greenstone-server and generate your own "latest and greatest" GS3
66 webapp on it, then I suggest you check out on the Greenstone SVN the extensions "i-greenstone-server" and
67 "android-war", found in the folder "gs3-extensions".)
68
698. Open i-greenstone-server, and click "Start Greenstone".
70
719. In Eclipse, run "Tipple" (not "Tipple Library") as an Android application, and hopefully everything works out!
72
73 (You will see one marker on campus with the i-greenstone-server turned on, and you'll see six markers with the pre-built hamilton.loc XML file.
74 If you change your GPS location to Whangarei (i.e. with a fake GPS application) you should see more!)
75
76 If not, immediately shoot me an email at [email protected]. Do not hesitate!
77
78
79ADDITIONAL INFORMATION
80----------------------
81
82- I have included a folder with the Tipple SVN called "osmosis", if you are
83interested in building your own .map file for Tipple. Because I had issues
84with the latest version of Osmosis, I put on SVN the version of Osmosis
85I used + a saved version of the "getting started" webpage as a PDF. You only
86really need to use the "getting started" PDF in order to find out how to install
87the Mapsforge plugin for Osmosis. Once you have the Mapsforge plugin installed, go to osmosis/bin
88and look at the example compile.bat I have created in order to generate your
89own .map file.
90
91- Even if the GPS is turned on and you turn on AR View (Mixare) in Tipple, it may
92say something like "Connection error occured - please make sure you are connected
93to internet" or something like that. You just have to keep hitting "Retry" until it
94works (it will disappear when Mixare gets a GPS location fix).
95
96- When you query from i-greenstone-server, all "locations" have the same marker radius, which is
97actually quite big. This is because originally my articles in the collection "tipple-universe"
98did not have the "Radius" metadata in them. So if you put a "Radius" metadata in an article,
99my GreenstoneXMLRetriever.java should map that to "radius", as long as you remove
100the exact line I used to hardcode the radius.
101
102BUGS
103----
104
105- i-greenstone-server may randomly stop hosting sometimes. Logcat logs indicate
106the OS is trying to get rid of it. Or maybe it's a problem I caused. Definitely look into this.
107
108- Whenever Tipple removes all the markers and displays new ones (i.e. when your location has
109changed sufficiently), if you go into one of the new locations and the phone vibrates, you
110won't see the yellow marker with the '+' symbol telling you you're currently in this location.
111
112-------
113CONTACT
114-------
115
116If you are confused about any of this or want more info, do not hesitate to email me at:
117[email protected]
Note: See TracBrowser for help on using the repository browser.