# How to download a built form to an android device

**URL:** <https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007>\
**Category:** Support\
**Created:** [October 13, 2016, 2:12pm UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007 "2016-10-13T14:12:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Osir](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/b/ee7513/32.png) [@Ben\_Osir](https://forum.getodk.org/u/Ben_Osir)\
**Post date:** [October 13, 2016, 2:12pm UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/1 "2016-10-13T14:12:05Z")

</div>

HelloFirst of all is special thanks for managing to develop this system that eases collection in the field.my question is how do one download a built form to an android device been trying with no sucess  
thanks  
Regards  
Ben Osir

---

<div class="post-metadata">

**Author:** ![Mitch\_S](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@Mitch\_S](https://forum.getodk.org/u/Mitch_S)\
**Post date:** [October 13, 2016, 9:38pm UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/2 "2016-10-13T21:38:34Z")

</div>

First, of course, you need to generate an XML file from your form  
definition, either by downloading it from ODK Build or using XLSForm to  
convert your XLSX file into an XML representation of that form logic.

Next, there are two approaches:

(1) set up an ODK Aggregate server and upload the form to that server (via  
the Form Management / Forms List sub-tab's Add New Form button or by using  
the Form Uploader tool (available on our downloads page)). Then open ODK  
Collect, go to the menu (3 vertical dot icon), click General Settings, and  
configure the server settings to point to your server. If you have  
restricted access to the server, you would also need to configure a  
username and password. By default, the server configuration allows  
Anonymous access. Once you have configured the server, choose "Get Blank  
Form" which will access the server, get the list of available forms, and  
display them for you to select and download. Once you have downloaded the  
forms, you can then go to the "Fill Blank Form" screen and open them and  
begin filling them in.

or

(2) install the 'adb' tool from Google's Android SDK, connect your device  
to your computer using a USB cable, and complete any additional  
configuration to be able to see the device when you type "adb devices" --  
see the Google documentation for instructions. Then open a cmd (Windows)  
or Terminal (MacOSX) window and use that to push an XML form to your  
device. Assuming you are in the directory containing the "yourform.xml"  
file (e.g., dir (windows) or ls (MacOSX) displays that file), then the  
general form would be

adb push yourform.xml /sdcard/odk/forms/

This will copy the file on your computer (_yourform.xml_) to your device.  
Then open ODK Collect and the Fill Blank Forms page should refresh and  
display that form.

> **···**
>
> On Thu, Oct 13, 2016 at 7:12 AM, 'Ben Osir' via ODK Community \< opendatakit@googlegroups.com\> wrote:
> 
> > Hello  
> > First of all is special thanks for managing to develop this system that  
> > eases collection in the field.  
> > my question is how do one download a built form to an android device been  
> > trying with no sucess
> > 
> > thanks
> > 
> > Regards
> > 
> > Ben Osir
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Mitch Sundt  
> Software Engineer  
> University of Washington  
> [mitchellsundt@gmail.com](mailto:mitchellsundt@gmail.com)

---

<div class="post-metadata">

**Author:** ![everst0ne](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/everst0ne/32/15938_2.png) [@everst0ne](https://forum.getodk.org/u/everst0ne)\
**Post date:** [December 14, 2022, 8:51am UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/3 "2022-12-14T08:51:18Z")

</div>

Hello, are there any documentations of similar question to this for the new version of v2022.4? @Mitch_S

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [December 20, 2022, 11:02am UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/4 "2022-12-20T11:02:18Z")

</div>

> [@everst0ne](#):
>
> Hello, are there any documentations of similar question to this for the new version of v2022.4?

This maybe [https://docs.getodk.org/collect-adb/](https://docs.getodk.org/collect-adb/)

---

<div class="post-metadata">

**Author:** ![everst0ne](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/everst0ne/32/15938_2.png) [@everst0ne](https://forum.getodk.org/u/everst0ne)\
**Post date:** [December 21, 2022, 1:28am UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/5 "2022-12-21T01:28:56Z")

</div>

Hello sir @Grzesiek2010, thanks for your reply. My problem actually is modifying the collect app, so that in the installation, it will come with a default/built-in project with forms.

Is this possible for the new version of v2022.4? I can't find the directory of the projects and it's forms from the source code.

I also created a thread for this question last week. Thank you

> [@Modifying ODK Collect v2022.4](https://forum.getodk.org/t/modifying-odk-collect-v2022-4/39868):
>
> We've been using ODK Collect since 2018 and using the old version. We have modified the source code so that upon the installation of the .apk, the forms are available even without using "get blank form". It's directory from the source code is "collect\_app\>assets\>forms" Planning to do this again for v2022.4 but upon checking, the forms are inside the project/s. So where is the directory of the projects and forms now? and is the previous setup still possible? Thank you

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [December 21, 2022, 8:25am UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/6 "2022-12-21T08:25:02Z")

</div>

Yes, I've noticed that it's not the first question about the same issue. Of course, what you want to achieve is possible but If you are not able to do that on your own you might need to hire someone to implement those changes.

---

<div class="post-metadata">

**Author:** ![everst0ne](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/everst0ne/32/15938_2.png) [@everst0ne](https://forum.getodk.org/u/everst0ne)\
**Post date:** [December 21, 2022, 9:25am UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/7 "2022-12-21T09:25:30Z")

</div>

Hello, i'm actually a developer 🙂

I think I just need to know where in the source code is the directory of project and forms.  
This is the source code for the v2022.4

 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/8/7/8713c3f3a0a2ff6dcad06daf4b65f6de9418e843.png)

And this is for the older version in which we modified. I think I just need to do the same. But I don't know where is the project folder. Can you point it? Thanks  
 ![image](https://getodk.b-cdn.net/uploads/default/original/3X/3/3/338f8ffaa27ee1f7ac31d0ae0f2397ecd6be1fc6.png)

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [January 18, 2023, 12:08pm UTC](https://forum.getodk.org/t/how-to-download-a-built-form-to-an-android-device/6007/8 "2023-01-18T12:08:07Z")

</div>

> [@everst0ne](#):
>
> I think I just need to know where in the source code is the directory of project and forms

It is not in the source code. When you create a new project a directory for that project is created on the internal storage. In the source code, you can of course keep XML forms and attachments (as you presented in the screenshots) so that then when a project is created you can copy it to that directory on the internal storage. It won't be visible in the project as I said because it's not a part of the source code. You can view the directory in Android studio but you have to go to `View -> Tool Windows -> Device File Explorer -> sdcard -> ANdroid -> data -> org.odk.collect.android -> files -> projects`
