csentry application called by another program

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

csentry application called by another program

Post 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?
Best
Ari
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: csentry application called by another program

Post by aaronw »

Would this be for desktop or Android?
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: csentry application called by another program

Post by AriSilva »

That´s for Android.
In Windows it is easy, using .bat.
Best
Ari
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: csentry application called by another program

Post 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);
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: csentry application called by another program

Post by AriSilva »

Good, I´ll try it.
Best
Ari
Post Reply