There are 2 independent apps that are inter-linked. Hence, info details that have been captured in the secondary can be displayed and called into the first, primary app. Therefore, the functionality will be; there is a link in the first app that will open the secondary app which will capture and store the details. After which when the primary app starts, it will retrieve and display the same info. However, there is a constraint, and the constraint is that the calling of the details into the primary app is done within the static environment; no network or database. Are there any method codes that allow one app to call and display the details captured in a secondary app?
Here is the code snippets from the secondary app that captures the info-details:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == Activity.RESULT_OK ) {
if (requestCode == REQUEST_CODE_RECOGNIZE) {
showResult(data.getStringExtra(OpenApi.EXTRA_KEY_VCF), data.getStringExtra(OpenApi.EXTRA_KEY_IMAGE));
}
} else {
int errorCode = data.getIntExtra(openApi.ERROR_CODE, 200);
String errorMessage = data.getStringExtra(openApi.ERROR_MESSAGE);
Log.d(TAG, "error: " + errorCode + ","+errorMessage);
Toast.makeText(this, "Scanning cancelled/failed. ErrorCode: " + errorCode + " ErrorMsg:" + errorMessage, Toast.LENGTH_LONG).show();
}
super.onActivityResult(requestCode, resultCode, data);
}