csentry application called by another program

Discussions about creating CAPI applications to run on Android devices
AriSilva
Posts: 174
Joined: July 22nd, 2016, 3:55 pm

csentry application called by another program

Postby AriSilva » October 11th, 2018, 9:35 am

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?
Best
Ari

aaronw
Posts: 92
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: csentry application called by another program

Postby aaronw » October 11th, 2018, 5:29 pm

Would this be for desktop or Android?

AriSilva
Posts: 174
Joined: July 22nd, 2016, 3:55 pm

Re: csentry application called by another program

Postby AriSilva » October 14th, 2018, 3:19 pm

That´s for Android.
In Windows it is easy, using .bat.
Best
Ari
Best
Ari

Gregory Martin
Posts: 1051
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: csentry application called by another program

Postby Gregory Martin » October 15th, 2018, 8:23 am

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);

AriSilva
Posts: 174
Joined: July 22nd, 2016, 3:55 pm

Re: csentry application called by another program

Postby AriSilva » October 15th, 2018, 2:29 pm

Good, I´ll try it.
Best
Ari


Return to “Android”