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
thanks
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
thanks
I already answered @moukaila but I’ll share it here
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);
intent.putExtras(extras);
startActivity(intent);
Tanks Pablo