Friday, November 1, 2013

Download file to Android app using Delphi

This is a very simple one, because it works the same way as it did with Delphi for Windows:

function HttpGet(const url: string): string;
var
  HTTP: TIdHTTP;
begin
  HTTP := TIdHTTP.Create(nil);
  try
    Result:=http.Get(url);
  finally
    FreeAndNil (http);
  end;
end;

1 comment:

  1. Hey , I have a question , if i downloads my file ...HOW CAN I DO TO SAVE in my folder

    ReplyDelete