Lazarus

Programming => Operating Systems => Android => Topic started by: Robert Gilland on June 19, 2021, 08:20:47 pm

Title: Starting new app by using AppDemo1 as base then renaming classname fails
Post by: Robert Gilland on June 19, 2021, 08:20:47 pm
I copy AppDemo1.

  gApp.Title:= 'My Android Bridges Library';
  gjAppName:= 'com.example.appdemo1';{AndroidWidget.pas}
  gjClassName:= 'com/example/appdemo1/Controls';{AndroidWidget.pas}
  gApp.AppName:=gjAppName;
  gApp.ClassName:=gjClassName;

Then change gjAppName and gjClassName to com.mytest.app and com/mytest/app/Controls

causes app to crash.

I just want to use AppDemo1 as a startApp, and interchange one unit at a time, until I have a working app, and I cannot get past this point.
Title: Re: Starting new app by using AppDemo1 as base then renaming classname fails
Post by: jmpessoa on June 19, 2021, 08:28:18 pm

You can create a new project and then import LAMW stuff (forms) from others app or demos...

Go to menu "Tools" --> "[LAMW]...." --> "Use/Import LAMW Stuff"

Then select some unit to be replaced for the new one....
TinyPortal © 2005-2018