Recent

Author Topic: One program overwrites another  (Read 2288 times)

shyub

  • Jr. Member
  • **
  • Posts: 82
One program overwrites another
« on: April 26, 2021, 07:18:38 pm »
I made a program template, then I change the name of the project, the icon and the number of buttons. Everything compiles, the APK file has a new name. However, after installation, the previously installed program is removed.
What needs to be changed so that all written programs can be installed on the phone at the same time?

shyub

  • Jr. Member
  • **
  • Posts: 82
Re: One program overwrites another
« Reply #1 on: April 27, 2021, 08:23:24 am »
Happened. Did this:

1. Rename the name of the template project in the IDE to the name of the new project.
2. Create a new project with the same parameters as the template.
3. Save and close Lazarus.
4. Replace all files in the "jni" folder (do not change the contents of "jni \ build-modes").
5. In the files "controls.lpi" and "controls.lpr" replace the template name with the name of the new project.
6. Replace the entire contents of the "res" folder.
7. In the file ".. \ res \ values \ strings.xml" make sure that the name matches the name of the new project, and replace if necessary.
8. Open and compile a new project.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8344
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: One program overwrites another
« Reply #2 on: May 02, 2021, 09:57:07 pm »
Package name is unique in the entire Android system. If you install one with the same package name as already installed one, it will be replaced as it's considered an update.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1848
Re: One program overwrites another
« Reply #3 on: May 04, 2021, 03:37:46 am »

Quote
Happened. Did this....

alternatively, you can create a new project and  "Import LAMW Stuff " (forms) from another project.

Menu "Tools" ---> "[LAMW]...." --> "Use/Import LAMW stuff"

« Last Edit: May 04, 2021, 03:47:01 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018