Lazarus

Programming => General => Topic started by: typo on June 29, 2015, 03:07:50 pm

Title: Using LazToApk
Post by: typo on June 29, 2015, 03:07:50 pm
In Path Setup > Android NDK > Find I see a message which says "Could not find any libc.so file on this path."

I can find NDK folder manually and inform it on the "Initial Folder" editbox.

However, none path from the list shows a correct path to some "libc.so" and I can find several of them manually (they are in "platforms" subdir).

The question is: how to set the correct NDK path (Statusbar says "NDK platform not found.)?

If I put the path to "platforms" subfolder, the message is that no files with "ndk" search criteria is in this folder. (It is a dead end.)
Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 07:58:33 pm
I have edited the INI file and set NDK path correctly, because I knew what file it was searching, it was, for insstance, a SO file. Now I could not do the same thing to SDK, which asks me for the path too, because I don't know what file it is searching for. It refers vaguely to "tools".
Title: Re: Using LazToApk
Post by: jmpessoa on June 29, 2015, 08:09:38 pm

.... /sdk/tools     


Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 08:25:47 pm
The paths are correct, but LazToApk does not find them and the messages remain.

Here is the Path section of the ini file:
Code: [Select]
[Path]
AndroidNDKPath=C:\laztoapk\downloads\android-ndk-r10d\platforms\android-21\arch-arm\usr\lib
AndroidSDKPath=C:\laztoapk\downloads\android-sdk-windows\tools
JDKPath=C:\Program Files\Java\jdk1.7.0_80\
BuildTool=c:\laztoapk\downloads\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=c:\laztoapk\TemplateProject\
LastUsedProjectDir=c:\laztoapk\projects\project1\
LastUsedSearchDir=C:\laztoapk\downloads\android-sdk-windows\tools\
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 08:30:07 pm
Hello,

I tried to make things a easy as possible with LazToApk. Did you EXACTLY follow this tutorial ? http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download (http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download)

Do you see the path in screenshot at page 5 ?

Which windows version do you use?

Regards,
Sam
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 08:34:19 pm
I think if you continue the tutorial, then it will work.
At step 06 on page 9 the NDK stuff will be ready!


http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas#l596 (http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas#l596)
Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 08:42:58 pm
Yes, I am following this tutorial as exactly as I can.

I use Win7.
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 08:50:00 pm
I tested LazToApk also with win 7 (32-bit) and it worked.

Have you win 7 (64-Bit) ?
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 08:51:34 pm
By the way. I recommend to watch Solar Impuls 2 on its way to Hawaii ! http://www.solarimpulse.com/widget-flight_wrapup (http://www.solarimpulse.com/widget-flight_wrapup)
Good luck!
Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 09:00:56 pm
32-bit.
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 09:06:25 pm
My laztoapk.ini on win 7 looks like this:

[App]
FirstApplicationStartUp=0

[Path]
AndroidSDKPath=c:\laztoapk\downloads\android-sdk-windows\
AndroidNDKPath=c:\laztoapk\downloads\android-ndk-r10d\
JDKPath=C:\Program Files\Java\jdk1.7.0_71\
BuildTool=c:\laztoapk\downloads\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=c:\laztoapk\TemplateProject\
LastUsedProjectDir=C:\laztoapk\projects\project1\
LastUsedSearchDir=C:\laztoapk\projects\project1\

[Config]
Device=0
AdbLog=1
LastUsedTab=0
LastUsedAPI=0
LastUsedBuildTool=0
CreateKeyFile=1
AutomaticInstallAPK=0
Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 09:18:11 pm
My laztoapk.ini on win 7 looks like this:
[Path]
AndroidSDKPath=c:\laztoapk\downloads\android-sdk-windows\
AndroidNDKPath=c:\laztoapk\downloads\android-ndk-r10d\

And did it work?
Title: Re: Using LazToApk
Post by: DelphiFreak on June 29, 2015, 09:33:53 pm
I have compiled/zipped and uploaded my project1.7z

Get it from here:
https://sourceforge.net/projects/laztoapk/files/?source=navbar (https://sourceforge.net/projects/laztoapk/files/?source=navbar)

See the batch-files in project1\android folder and the you will find the app project1.apk in  project1\android\bin

Title: Re: Using LazToApk
Post by: typo on June 29, 2015, 09:45:41 pm
Thanks.
Title: Re: Using LazToApk
Post by: typo on June 30, 2015, 10:26:27 am
I have a problem. When I am on Step 7, could not choose an NDK, because "No NDK platform found".

Build & Deploy button is disabled.
Title: Re: Using LazToApk
Post by: Thaddy on June 30, 2015, 10:49:23 am
Same thing as before. GPS for compiler/platform/binary paths not invented yet. Plz check location from maps, i.e. check what you have done fits.
Title: Re: Using LazToApk
Post by: DelphiFreak on June 30, 2015, 10:51:37 am
Open laztoapk in lazarus IDE and Debug! DetectInstalledNDKPlatforms
Title: Re: Using LazToApk
Post by: DelphiFreak on June 30, 2015, 07:19:46 pm
Did you debug and find out what's wrong? If so please let me know.
Title: Re: Using LazToApk
Post by: typo on June 30, 2015, 07:23:22 pm
Not yet. I made the big mistake of uninstalling LazToApk and am still reinstalling it.

I got the project from SourceForge, but it seems to be not up to date.
Title: Re: Using LazToApk
Post by: DelphiFreak on June 30, 2015, 08:28:17 pm
Hello typo,

the sources at sourceforge.net are the latest sources. Why do you think it's not the correct source?
Title: Re: Using LazToApk
Post by: typo on June 30, 2015, 08:39:02 pm
I see at least 1 error on DetectInstalledNDKPlatforms: Pos never returns -1. Maybe it should be 0.

Code: [Select]
function TfrmApkManager.DetectInstalledNDKPlatforms: TStringList;
var
i:integer;
_pos:integer;
_temp:string;
_tempList:TStringList;
begin
  result:=TStringList.create;
  result:=FindAllFiles(FAndroidNDK,'libc.so');
  if result.count=0 then begin
    MessageDlg(format('No files with name <libc.so> found in NDK-path <%s>. Did you install the android NDK and setup the correct NDK-Path?',[FAndroidNDK]),mtWarning, [mbOK], 0);
    exit;
  end;
  _tempList:=TStringList.create;
  try
    _tempList.Duplicates:=dupIgnore;
    _tempList.sorted:=true;
    for i:=0 to result.count-1 do begin
      _pos:=pos('platforms\android-',result[i]);
      if _pos=-1 then continue;         //<<<<<<<<<<<
      _temp:=result[i];
      delete(_temp,1,_pos+17);
      _pos:=pos(PathDelim,_temp);
      _temp:=copy(_temp,1,_pos-1);
      _tempList.add(_temp);
    end;
    result.assign(_tempList);
  finally
    _tempList.free;
  end;
end;           

I think the error I have found is related to this, the folders shown in the list is all but from "platforms\android" folder, instead of the contrary. Maybe the only dirs which should be in this list are "platforms\android" and their subdirs.
Title: Re: Using LazToApk
Post by: DelphiFreak on June 30, 2015, 08:57:20 pm
You are right Should be =0.
I will check if this error might be around somewhere else in the code and the update at sourceforge.
 
Title: Re: Using LazToApk
Post by: typo on June 30, 2015, 09:04:08 pm
Also, maybe this function can be simplified, at least because FindAllFiles has an overloaded one on which you can set a StringList as a parameter, avoiding memory leak.

Code: [Select]
procedure FindAllFiles(AList: TStrings; const SearchPath: String;
  SearchMask: String = ''; SearchSubDirs: Boolean = True; DirAttr: Word = faDirectory); overload;       

So you could write:
Code: [Select]
FindAllFiles(Result, ...

You should not create Result StringList because it is already created in FindAllFiles function.

Another issue I see is in the line:
Code: [Select]
delete(_temp,1,_pos+17);
Of course you refer to the string 'platforms\android-', which has in fact 18 chars. Use Length('platforms\android-').
Title: Re: Using LazToApk
Post by: DelphiFreak on June 30, 2015, 09:28:45 pm
Ok, fixed and checked in the sources to sourceforge.net
But this was probably not the troublemaker for your problem. So if you could debug and find out I would be very glad.

Need to sleep now. Will be back tomorrow.
Title: Re: Using LazToApk
Post by: typo on June 30, 2015, 09:39:01 pm
Thanks for your work.
Title: Re: Using LazToApk
Post by: typo on July 01, 2015, 02:41:48 pm
Now I can debug the project, but my error has desapeared because you have changed it a bit.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 01, 2015, 07:02:15 pm
Hello,

sorry I don't understand.
The fix about _pos=-1 did solve your problem?

Can you build now an app?

Regards,
Sam
Title: Re: Using LazToApk
Post by: typo on July 01, 2015, 07:05:41 pm
No.

On Step 4 an error occurs. The file does not exist.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 01, 2015, 07:09:04 pm
But you wrote that the error has disappeared.
So you have now another problem ?

If so, then please give some information about the problem or debug it yourself.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 01, 2015, 07:18:44 pm
Ok, please close lazarus and laztoapk.
Then delete the file laztoapk.ini.
Start laztoapk again.

It will try to rebuild lazarus.

Hope this helps.
Title: Re: Using LazToApk
Post by: typo on July 01, 2015, 10:17:20 pm
Nothing has changed. The output message is:

Code: [Select]
Failed building C:\laztoapk\projects\project1\project1android.lpi


C:\laztoapk\projects\project1\android>REM pause
Title: Re: Using LazToApk
Post by: DelphiFreak on July 02, 2015, 06:24:32 am
More info please.
You could start Lazarus and open the project1android.lpi.
Then compile as normal an send me the error/waning messages.
Title: Re: Using LazToApk
Post by: typo on July 02, 2015, 07:36:58 am
Image attached.

The error occurs outside the app, in the batch file called "android\build_debug_apk.bat". Running from Lazarus makes no difference.

Simply run the app and press the manual construction buttons and you will see the error.

Te error occurs here (file does not exist):
Code: [Select]
procedure TfrmApkManager.btnCreateApkFileClick(Sender: TObject);
var
  _targetfilename:string;
begin
  if FProjectDir = '' then begin
    SelectDirectoryDialog1.Title := 'Select project directory';
    if not SelectDirectoryDialog1.Execute then exit;
    FProjectDir := SelectDirectoryDialog1.FileName + PathDelim;
  end;
  _targetfilename:=FProjectDir + 'android\bin\'+FProjectName+'.apk';
  RunScript(FProjectDir + 'android\build_debug_apk.bat', False);
  // Now the error occurs <<<<<<<<<<<<<<<<<<<<
  if not FileExistsUTF8(_targetfilename) then begin
    MessageDlg(format('Could not build the Android apk <%s>. See batch file output to analyze the problem.',[_targetfilename]), mtWarning, [mbOK], 0);
    // The file does not exist <<<<<<<<<<<<<<<<<
    exit;
  end;
  btnInstallAPK.Enabled:=true;

  if pgcMain.ActivePage <> tabManual then Exit;

  BringToFront;
  btnInstallAPK.SetFocus;
end;     

The only APK file which exists in this folder is "project1-unsigned.apk" in BIN subfolder.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 02, 2015, 09:20:20 am
Hi,
of course this will not work! You are using a very,very old version of laztoapk.
Where an when did you get that version ?


Correct version at the moment is :
http://sourceforge.net/projects/laztoapk/files



I really recommend you to delete your current folder laztoapk and start again!!!!!!
Title: Re: Using LazToApk
Post by: typo on July 02, 2015, 02:22:31 pm
Which is exactly the file I should download?

Please inform the exact link.

EDIT:
No, I have downloaded from these files, only the source code I got in another place. Where should I get the updated one?
Title: Re: Using LazToApk
Post by: DelphiFreak on July 02, 2015, 03:04:04 pm

Here is the setup. The current version is 0.9.0.31. You must install it.
http://sourceforge.net/projects/laztoapk/files/latest/download?source=directory (http://sourceforge.net/projects/laztoapk/files/latest/download?source=directory)

Only downloading the sources and compiling them is not enough!
Title: Re: Using LazToApk
Post by: typo on July 02, 2015, 03:15:19 pm
Do the sources come in this download?
Title: Re: Using LazToApk
Post by: DelphiFreak on July 02, 2015, 03:16:13 pm
No, the changes we did yesterday (_pos=-1) is not included in this download.
Title: Re: Using LazToApk
Post by: typo on July 02, 2015, 03:23:02 pm
But the sources are included in this installation or not?

Well, I have just resintalled everything and have the same error, NDK instllation not found. By the binary generated by sources -- although they are not updated -- this error does not occur.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 02, 2015, 11:16:17 pm
Hey man, I told you to download 0.9.0.31!
The pdf with all instructions available also at sourceforge.net on the first page says:

06.Mai 2015 Version 0.9.0.31.
Do you think then the version 0.9.0.31 does contain changes from the 30.Juni ??


Please read my instruction manual, I have spent a lot of time to get it correct!!!!!! http://sourceforge.net/projects/laztoapk/files/?source=navbar (http://sourceforge.net/projects/laztoapk/files/?source=navbar)
Title: Re: Using LazToApk
Post by: typo on July 02, 2015, 11:23:54 pm
Hey man, I do have downloaded  0.9.0.31 and the error exists.

BTW, it does not exist in previous versions.

BTW, I do acknowledge your efforts to write the manual.

You still don't mention how to get the 0.9.0.31 version source code.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 03, 2015, 04:36:23 pm
Hi,

the easiest way to get the current sources (0.9.0.32 which contains your suggestions about _pos=-1 and MemoryLeaks) can be
downloaded from here: http://sourceforge.net/p/laztoapk/svn/HEAD/tree/ (http://sourceforge.net/p/laztoapk/svn/HEAD/tree/)

Click onto the "Download snapshot" and you will get a zip-file with all the files.
Title: Re: Using LazToApk
Post by: typo on July 03, 2015, 04:39:01 pm
Thanks.
Title: Re: Using LazToApk
Post by: typo on July 03, 2015, 04:51:50 pm
It still does not find NDK installation, which was made by itself.
Title: Re: Using LazToApk
Post by: dbaxter on July 14, 2015, 08:00:28 pm
I, too, am struggling to get past the 'NDK platform not found' message. The ini file is as described here and have followed the tutorial steps. Even installed the 9.0.32 version. Finding the SDK worked OK.
Title: Re: Using LazToApk
Post by: dbaxter on July 23, 2015, 10:34:11 pm
I thought since there was activity in July, that this thread was monitored. Evidently not.
Too bad, the package seems to have promise if it could be gotten to work. If anyone knows what we need from the NDK, I'm willing to try to fix it. I just don't know Android very well 'under the hood'.
Title: Re: Using LazToApk
Post by: dbaxter on July 25, 2015, 04:30:30 am
Ok, inspecting the code revealed that the problem may be caused by a disconnect between versions of the SDK and the NDK. The current downloadable SDK is android-22, but the NDK's I can find only go up to 21. laztoapk is looking for a match between the two. We need to find an android-22 NDK.
Title: Re: Using LazToApk
Post by: DelphiFreak on July 25, 2015, 06:41:55 am
Thank you for taking time to search the problem. (good thing of open-source, everyone can debug  :D )

As I stated before I have not much time to keep up with all these changes done by the packager of NDK,SDK,JDK,laz4android and so on.

If you have patches/suggestions or would like to get write-access to the laztoapk sourceforge project please let me know.

Sam
Title: Re: Using LazToApk
Post by: vhalonk on August 13, 2015, 08:46:20 am
me too.  "NDK platform not found".
Title: Re: Using LazToApk
Post by: Handoko on August 13, 2015, 11:18:28 am
Here are the steps to setup the paths:

To Setup SDK Path

To Setup NDK Path

To Setup JDK Path

To Setup Build Tool Path
Title: Re: Using LazToApk
Post by: vhalonk on August 14, 2015, 06:04:54 am
sorry my english poor
solved. i just copy other android sdk file to laztoapk\sdk path, and now ndk platform can read.

but i have another problem.

when I click build&deploy in laztoapk i have error code and can't compile project.

Quote
project1android.lpr(40) Error: (9013) Error while linking
project1android.lpr(40) Fatal: (10026) There were 1 errors compiling module, stopping

Fatal: (1018) Compilation aborted
Error: c:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\ppcrossarm.exe returned an error exitcode

Error: (lazarus) Compile Project, OS: android, CPU: arm, Target: android\libs\armeabi\liblclapp.so: stopped with exit code 1

ERROR: failed compiling of project C:\laztoapk\projects\project1\project1android.lpi



C:\laztoapk\projects\project1\android>REM pause                                                                         
Title: Re: Using LazToApk
Post by: DelphiFreak on August 14, 2015, 08:53:24 am
Hi,
could you try the following?
A) close lazarus.
B) close laztoapk.
C) start the batch-file  "C:\laztoapk\downloads\laz4android\build.bat".  -->this will take a while.
D) now try again to build your project. Either by using laztoapk or by just running the batch-file "C:\laztoapk\projects\project1\android\build_app.bat"



Title: Re: Using LazToApk
Post by: vhalonk on August 22, 2015, 06:30:27 pm
application can't run
Title: Re: Using LazToApk
Post by: almora on September 10, 2015, 05:45:22 pm
 "NDK platform not found"
Please help...
I've tried the above but did not.

http://forum.lazarus.freepascal.org/index.php?action=dlattach;topic=28908.0;attach=12364;image

Windows XP 32 bit

Title: Re: Using LazToApk
Post by: Handoko on September 10, 2015, 05:52:19 pm
Please follow the steps I posted on Reply #49.
Title: Re: Using LazToApk
Post by: almora on September 10, 2015, 07:04:45 pm
I tried but it did not.
Title: Re: Using LazToApk
Post by: Handoko on September 10, 2015, 07:14:48 pm
From the screenshot you provided, I can see you put C:\laztoapk\downloads\android-ndk-r10d on Initial Folder.

You should put C:\laztoapk\downloads only and then press the "Find" button.
Title: Re: Using LazToApk
Post by: almora on September 11, 2015, 08:18:51 am
No work...

http://i.hizliresim.com/ylZGN0.jpg

http://i.hizliresim.com/8bR6Pr.jpg

http://i.hizliresim.com/oZ4d0o.jpg

http://i.hizliresim.com/rVz03B.jpg
Title: Re: Using LazToApk
Post by: almora on September 11, 2015, 08:21:20 am
[Path]
AndroidSDKPath=C:\Program Files\Android\android-sdk\
AndroidNDKPath=C:\Program Files\laztoapk\downloads\android-ndk-r10e\
JDKPath=C:\Program Files\Java\jdk1.7.0_51\
BuildTool=C:\Program Files\laz4android\lazbuild.exe
NDKToolChainPath=toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\
TemplateProjectPath=C:\Program Files\laztoapk\TemplateProject\
LastUsedProjectDir=C:\Program Files\laztoapk\projects\project1\
LastUsedSearchDir=C:\Program Files\laztoapk\downloads\

[App]
FirstApplicationStartUp=0

[Config]
Device=1
AdbLog=1
LastUsedTab=0
LastUsedAPI=0
LastUsedBuildTool=0
CreateKeyFile=1
AutomaticInstallAPK=1
Title: Re: Using LazToApk
Post by: DelphiFreak on September 11, 2015, 10:03:03 am
Hi,

did you read the instruction PDF-File?
http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download (http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download)

The first sentence says:
Important Note:
A)Please remove previous versions before installing a new version.
B)Installation path containing “SPACE” char's do still not work.

You have your downloads-folder in "C:\Program Files" ! SPACE!


Title: Re: Using LazToApk
Post by: Handoko on September 11, 2015, 10:16:06 am
[Path]
TemplateProjectPath=C:\Program Files\laztoapk\TemplateProject\
LastUsedProjectDir=C:\Program Files\laztoapk\projects\project1\
LastUsedSearchDir=C:\Program Files\laztoapk\downloads\

Your laztoapk installation folder is under C:\Program Files, which contain a space between "Program" and "Files". So far, LazToApk can't work properly if the path contains any space character.

Try to remove all the installation and reinstall again on the root folder C:\
Title: Re: Using LazToApk
Post by: almora on September 11, 2015, 10:20:06 am
I installed the new version and for the first time

C:\laztoapk\
I tried it.
Title: Re: Using LazToApk
Post by: almora on September 11, 2015, 10:52:07 am
http://i.hizliresim.com/Eq9AM9.jpg

http://i.hizliresim.com/mzANay.jpg

http://i.hizliresim.com/ly5NDk.jpg
Title: Re: Using LazToApk
Post by: DelphiFreak on September 11, 2015, 11:07:55 am
From the screenshots I can see that your SDK and laz4android paths still point to "Program Files". I recommend to un-install all and then do it again as described in the instruction PDF. Thank you.
Title: Re: Using LazToApk
Post by: Handoko on September 11, 2015, 11:12:20 am
Beside what DelphiFreak said, please also make sure you enable the API 16.

On the SDK Manager, enable:
- Android 4.1.2 (API 16) > SDK Platform
- Android 4.1.2 (API 16) > ARM EABI v7a System Image
Title: Re: Using LazToApk
Post by: mehrrath on October 13, 2015, 04:36:49 pm
THE SOLUTION FOR NDK PROBLEMS IS TO KEEP THE installed SDK AND NDK TARGET PLATFORM (DIRs) IDENT.

e.g.

ini

AndroidSDKPath=C:\android\android-sdk-windows\       > ..... platforms\android-21\   must exist ....
AndroidNDKPath=C:\android\android-ndk-r10e\        > ..... platforms\android-21\  must exist....






Title: Re: Using LazToApk
Post by: DelphiFreak on October 13, 2015, 07:44:18 pm
Hello,

laztoapk scans the NDK folder for the file "libc.so".  Look for method "DetectInstalledNDKPlatforms  http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas (http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas)
After that, laztoapk look's in the SDK folder for if the folder exists and the file "android.jar" is existing.

Sam
Title: Re: Using LazToApk
Post by: dorra on January 08, 2018, 12:03:11 am
Hello,

today i tried to get LazToApk working.
Installation and Config went fine.
But the generated APK don't work after instalation.

I am using Windows 7 64Bit

Do you find any Errors?

Thanks
Martin
Title: Re: Using LazToApk
Post by: Handoko on January 08, 2018, 03:28:28 am
What error message did you get?

Quote
Unfortunately, project1 has stopped.

If you got such message when starting the program and you're running the it on Android 5 or above device, then you should read here:
http://forum.lazarus.freepascal.org/index.php/topic,32472

You may want to try LAMW. It is working good and well supported:
http://wiki.lazarus.freepascal.org/LAMW

There are many different ways to build Android app using Lazarus/FPC:
http://forum.lazarus.freepascal.org/index.php/topic,38777.msg264428.html#msg264428
Title: Re: Using LazToApk
Post by: DelphiFreak on January 08, 2018, 07:52:40 am
Hello dorra,

from the screenshot you posted it looks ok.

My questions:

A) did you run the generated apk-file on a  real device or in the emulator ?
B) did you build the apk-file by using laztoapk or by using LAMW (as shown in this video? https://sourceforge.net/projects/laztoapk/files/laztoapk_LAMW_Install_and_First_App.mp4/download (https://sourceforge.net/projects/laztoapk/files/laztoapk_LAMW_Install_and_First_App.mp4/download)

I have a WIKI page about successful attemps. I would be happy if some folks could constribute to that list. https://sourceforge.net/p/laztoapk/wiki/Home/ (https://sourceforge.net/p/laztoapk/wiki/Home/)
Title: Re: Using LazToApk
Post by: dorra on January 08, 2018, 02:20:45 pm
Hi DelphiFreak,
a) I had run the generated apk's on two real Devices.
    - Samsung S5 mini
    - Samsung Tab A 2016
    Because I installed the Tools on my aged Laptop I can not use the Emulator.
    It is to slow.
b) I build the APK's using LazToApk.
    I tryed the shipped Example and an own Project.
    I didn't try LAMW

Best Regads,
Martin
Title: Re: Using LazToApk
Post by: dorra on January 10, 2018, 12:55:45 am
Thanks to Handoko,
I tried LAMW and it worked fine.
My first Apps can be executed.
Now I will give deeper into into this Things.
TinyPortal © 2005-2018