How to start launch Search from Custom Activity providing OU and Tracker program?

Hi all.

I am working on an android app based on dhis2-tracker-capture-app and i am looking for the way i could launch SearchActivity from my custom Activity where i already have acces to the Organization Unit and the tracker related program


@Pablo ?

I already answered @moukaila but I’ll share it here :slight_smile:

This is how you can access the search activity from any other:

Intent intent = new Intent(getContext(), SearchTEActivity.class);
Bundle extras = new Bundle();
extras.putString(“PROGRAM_UID”, programUid);
extras.putString(“TRACKED_ENTITY_UID”, trackedEntityTypeUid);

1 Like

Tanks Pablo