Sahana specific version of ODK collect client
Files modified :
-
InstanceUploaderActivity.java Method name - protected void onCreate(Bundle savedInstanceState) { ... } Code added - mInstanceUploaderTask.setLogon(getSettingsFromPreferences().getString(PreferencesActivity.KEY_USERNAME, "")); mInstanceUploaderTask.setPassword(getSettingsFromPreferences().getString(PreferencesActivity.KEY_PASSWORD, ""));
-
InstanceUploaderTask.java
Method name - protected HashMap<String, String> doInBackground(Long... values) { ... } Code added -
Please refer here - http://pastebin.ubuntu.com/1303842/
Other basic changes from the link - http://code.google.com/r/jaxtrx-edenodkcollect/source/detail?r=0e210c972d00b28b03b6e681bfa74fa97a9d57bf ServerPreferences.java is refactored to PreferencesActivity.java
Instructions to run the project :
- Download the zip of the project code from Github (Use the clone in Mac or the ZIP option)
- Setup eclipse with android plugin.
- Go to Import projects -> Android-> Existing Android Code Into Workspace ->Browse to the path where project was downloaded -> Finish
- Run the project in Debug mode and select an Android 4.1 device and run it on emulator.
- Get all the forms, fill one of them and try submitting the form.