# Code for offline data collection handling

**URL:** <https://forum.getodk.org/t/code-for-offline-data-collection-handling/31841>\
**Category:** Development\
**Tags:** odk-collect\
**Created:** [December 31, 2020, 10:10pm UTC](https://forum.getodk.org/t/code-for-offline-data-collection-handling/31841 "2020-12-31T22:10:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 4, 2021, 7:54am UTC](https://forum.getodk.org/t/code-for-offline-data-collection-handling/31841/2 "2021-01-04T07:54:08Z")

</div>

Hi @Dominic_S  
We're glad you're here. When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671). I'd also encourage you to add a real picture as your avatar because it helps build community!

> [@Dominic\_S](#):
>
> saving forms data offline

Forms are saved in the same way on your device no matter you are online or offline by [SaveFormToDisk](https://github.com/getodk/collect/blob/master/collect_app/src/main/java/org/odk/collect/android/tasks/SaveFormToDisk.java)

> [@Dominic\_S](#):
>
> and syncing to a server when there is internet connectivity

[AutoSendTaskSpec](https://github.com/getodk/collect/blob/master/collect_app/src/main/java/org/odk/collect/android/backgroundwork/AutoSendTaskSpec.java)

---

_[View the full topic](https://forum.getodk.org/t/code-for-offline-data-collection-handling/31841)._
