Page 1 of 1

csentry application called by another program

Posted: October 11th, 2018, 9:35 am
by AriSilva
1. Is it possible for an external (outside CsEntry) application to start a CsEntry application?
2. Is it possible to close CsEntry when a CsEntry application stops? I mean, when an application stops it returns control to CsEntry, and CsEntry is still running. Can we stop CsEntry besides closing it by hand?

Re: csentry application called by another program

Posted: October 11th, 2018, 5:29 pm
by aaronw
Would this be for desktop or Android?

Re: csentry application called by another program

Posted: October 14th, 2018, 3:19 pm
by AriSilva
That´s for Android.
In Windows it is easy, using .bat.
Best
Ari

Re: csentry application called by another program

Posted: October 15th, 2018, 8:23 am
by Gregory Martin
We register the PFF extension with the Android operating system, so if you have another application that you've written, you could open a specific PFF by doing something like this in your Java code:

Code: Select all

String mime_type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(pff_filename);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(getShareableUriForFile(new File(pff_filename), activity), mime_type);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
activity.startActivity(intent);

Re: csentry application called by another program

Posted: October 15th, 2018, 2:29 pm
by AriSilva
Good, I´ll try it.