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?
csentry application called by another program
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
-
aaronw
- Posts: 571
- Joined: June 9th, 2016, 9:38 am
- Location: Washington, DC
Re: csentry application called by another program
Would this be for desktop or Android?
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
Re: csentry application called by another program
That´s for Android.
In Windows it is easy, using .bat.
Best
Ari
In Windows it is easy, using .bat.
Best
Ari
Best
Ari
Ari
-
Gregory Martin
- Posts: 1946
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: csentry application called by another program
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: 625
- Joined: July 22nd, 2016, 3:55 pm