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
Re: csentry application called by another program
Would this be for desktop or Android?
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
-
- Posts: 1795
- 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);