Launch a specific form from android


(Luis Carrillo) #1

how can I launch a specific odk form, since I've only found it with an id?

Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setData("content://org.odk.collect.android.provider.odk.forms/forms/2");
startActivity(intent);


(Grzegorz Orczykowski) #2

Hi @George

here you can find a sample app that which has that option (opening a specific form using id).
There is also a pr there that demonstrates how to open a form using jrFormId https://github.com/grzesiek2010/collectTester/pull/25


(Luis Carrillo) #3

Hi @Grzesiek2010,
thanks for answering

I have a question: The "jrFormId" is "form_title" or "form_id" name of the form?


(Grzegorz Orczykowski) #4

It is the form_id...


(Luis Carrillo) #5

Thank you very much, you have helped me in a great way, it has worked perfectly.