How to Hide Applications listing on mobile device

Discussions about creating CAPI applications to run on Android devices
Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

How to Hide Applications listing on mobile device

Postby Dzidefo » January 13th, 2018, 9:15 am

Dear Cspro Users,

I would loke to hide the my principal application and show only the menu application ont my mobile device.

I try unsuccessfully the following codes:

1)
filewrite(pffFile,"[DataEntryInit]");
filewrite(pffFile,"ShowInApplicationListing=Hidden");

2)

filewrite(pffFile,"[DataEntryInit]");
filewrite(pffFile,"ShowInApplicationListing=Never");

I notice i use cspro 7.0.2.

Many thanks to help me.

thierryt
Posts: 35
Joined: April 26th, 2017, 12:17 pm

Re: How to Hide Applications listing on mobile device

Postby thierryt » January 14th, 2018, 8:19 am

Hi Dzidefo,
i use cspro 6.3.2.
in all devices you have a folder named TEMP.
you can generate yours .pff that are not MENU and send it in TEMP folder.

look this example.
string temp = pathname(temp);
function genpff4(string app)
SetFile( piffile, temp + app + ".pff") ;
FileWrite( piffile,"[Run Information]");
FileWrite( piffile,"Version=CSPro 6.3");
FileWrite( piffile,"AppType=Entry");
Filewrite (piffile, "[DataEntryInit]");
Filewrite (piffile, "OperatorID=Anyone");
Filewrite (piffile, "StartMode=ADD;1");
FileWrite( piffile,"[Files]");
FileWrite( piffile,"Application=" + entdir + slash + app + ".pen");
FileWrite( piffile,"InputData=" + temp + app + ".dat");
FileWrite( piffile,"[ExternalFiles]");
FileWrite( piffile,"SUIVI_DICT=" + ref + slash + "suivi.dat");
FileWrite( piffile,"[Parameters]");
FileWrite( piffile,"STATUT = " + accreditation );
FileWrite( piffile,"wdir = " + wdir);
Filewrite( piffile, concat( "REPORT=", strip(report) ) );
close( piffile );
end;

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

Re: How to Hide Applications listing on mobile device

Postby Gregory Martin » January 15th, 2018, 10:01 am

The ShowInApplicationListing approach should have worked. I'm surprised that it didn't. Another way to hide the PFF is to make the Description (which should come under [Run Information]) blank. Like this:

[Run Information]
Version=CSPro 7.0
AppType=Entry
Description=

Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Postby Dzidefo » January 16th, 2018, 5:05 am

Thanks thierryt,

Greg, thanks,
But Curioslly , when I open the pff file (I hope, i'm at the rigth place) of the application i want to hide and i check the description field
it's already blank.

regards,

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

Re: How to Hide Applications listing on mobile device

Postby Gregory Martin » January 16th, 2018, 8:17 am

I'm not sure what you mean now. If you use ShowInApplicationListing or a blank Description, the PFF should never be displayed in the application listing. You will want to launch it in logic using the execpff function.

If you are seeing the PFF in the application listing screen, then I suspect the PFF is not correctly setup. You can post it here and we can look at it.

Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Postby Dzidefo » January 16th, 2018, 11:11 am

Dear Greg,

See in the atteched file.

The menu aplications files is in the "RGEMenu" folder and the main application files is in the "RGE" folder.
I just add in attached file the mains folders and .ppf and .pen files.
If necessary i can send you inbox the hole application.
It's the application of our enterprise survey, It' is not alrady perform, so i can't now put herethe hole application without the permission of the office.
Attachments
TGO_RGE_Menu.rar
(326.34 KiB) Downloaded 28 times

Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Postby Dzidefo » January 16th, 2018, 11:17 am

Greg, also, I d'ont understand what you are saying by "not correctly set up" ? Is it about the runing ?

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

Re: How to Hide Applications listing on mobile device

Postby Gregory Martin » January 17th, 2018, 6:36 am

Can you reupload your file? I can't open it. I tried using 7-Zip and also Windows Explorer, and neither could open your .rar file. It might be corrupt. Can you upload it as a .zip or .7z file?

Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Postby Dzidefo » January 17th, 2018, 9:19 am

I hope it's ok, now.
Attachments
TGO_RGE_Menu.zip
(332.18 KiB) Downloaded 40 times

Dzidefo
Posts: 21
Joined: July 12th, 2017, 1:57 pm

Re: How to Hide Applications listing on mobile device

Postby Dzidefo » January 17th, 2018, 9:22 am

I resend the the .rar version.
Attachments
TGO_RGE_Menu.rar
(326.34 KiB) Downloaded 39 times


Return to “Android”