Recent

Author Topic: Starting new app by using AppDemo1 as base then renaming classname fails  (Read 1604 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 159
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.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1944

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....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018