AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
segxy4manu
Posts: 37
Joined: August 31st, 2016, 5:51 pm

AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)

Post by segxy4manu »

AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)
how do i use logic to call up an Authentication application on an android device which is used to capture bio-metrics finger print
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)

Post by josh »

You can use the execsystem function to launch other applications on Android. You need to know the full name id of the app which you can get by viewing the app on Google Play in a web browser (not in the Play Store app). For example if you find the BBC News app on the Play Store in your browser the URL (from the address bar in the browser) will be https://play.google.com/store/apps/deta ... le.news.ww To launch this app from CSPro take the part of the URL after "id=" and use it in the call to execsystem:

Code: Select all

if execsystem("app:bbc.mobile.news.ww") <>1 then
  errmsg("Failed to launch BBC News, is it installed on your system?");
endif;
The problem with a fingerprint reading app is that there may not be any way to get a result from the app that you launched. execsystem will start the other application but there is no way for CSPro to know if the fingerprint scan failed or identified the correct person. If you are writing your own fingerprint scanning app then you could have it write the results to a file and then read that file from CSPro but if it is an app that you get from Google Play or one that comes with the device then this will not be possible.
CSProUser
Posts: 4
Joined: November 30th, 2016, 11:29 pm

Re: AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)

Post by CSProUser »

Can the same function be utilized to notify the supervisor that a particular interview was completed without sending actual interview data?
I just want to send a skype notification with the household address.
Thank you.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: AUTHENTICATION (USING CSENTRY TO CALL ANOTHER ANDROID APPLICATION ON A DEVICE)

Post by josh »

You could use it to launch Skype but there isn't a way I know of to automatically have Skype send the notification.
Post Reply