Recent

Author Topic: How could one change package name of a android app  (Read 4052 times)

stab

  • Full Member
  • ***
  • Posts: 237
How could one change package name of a android app
« on: November 21, 2012, 10:54:05 pm »
Hi,

Tried to change package name from lcltest to testproject2 like this:

In batch-file build_debug_apk.bat I changed
%APK_PROJECT_PATH%\src\com\pascal\lcltest\LCLActivity.java to
%APK_PROJECT_PATH%\src\com\pascal\testproject2\LCLActivity.java

in file LCLActivity.java
package com.pascal.lcltest; to package com.pascal.testproject2;

and in AndroidManifest
package="com.pascal.lcltest" to package="com.pascal.testproject2"

An apk is created but when I try to run it it fails so something has to
be wrong with it, as it works if I don't make these changes.

The reason why I want to change package name is that otherwise I get a remark that I'm trying to install same app again even if it is a new one.

What should one do to be able to install more than one app?
Are the problems due to same package name or something else?

Regards
stab %)   

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
Re: How could one change package name of a android app
« Reply #1 on: November 22, 2012, 06:04:43 am »
Hi,
In the project's file which is androidlcltest.lpr ,you can find like this line:  CDWidgetset.ActivityClassName := 'com/pascal/lcltest/LCLActivity';
try to change this to your current project's LCLActivity.java,like:

  CDWidgetset.ActivityClassName := 'com/pascal/testproject2/LCLActivity';

sorry for my bad english!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

 

TinyPortal © 2005-2018