Jump to content

Is possibile make a unigui-application to download APK on the mobile from the temp folder ?


Franck Pedrini

Recommended Posts

14 minutes ago, Franck Pedrini said:

I test demos 'download' , when i try to download an apk from an android mobile   , the message is ACCESS DENIED

Hello,

Try this approach:

procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
begin
  MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False);
end;

 

Link to comment
Share on other sites

9 hours ago, Sherzod said:

Hello,

Try this approach:

procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject);
begin
  MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False);
end;

 

Hi, how do I make it load from a file?

If I want to allow the user to add it in a file with Mime Type

?

Link to comment
Share on other sites

6 minutes ago, Sherzod said:

Hello, 

Sorry, I didn't understand the question.

sorry,

I want to load myme types from file, how can do that ?

something like that:  MimeTable.LoadFromStrings (MimeTypeList,',');
but how to produce file with values, is this correct if i want to add apk ?

 MimeTable.AddMimeType('apk', 'application/vnd.android.package-archive', False);

in file will be:

row 1: apk, application/vnd.android.package-archive

row 2: xlsm, application/vnd.ms-excel.sheet.macroEnabled.12, False

row 3 .....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...